aws-quickstart / quickstart-kubernetes-resource-provider
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 41 units with 373 lines of code in units (23.8% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (50 lines of code)
    • 2 simple units (82 lines of code)
    • 37 very simple units (241 lines of code)
0% | 0% | 13% | 21% | 64%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
py0% | 0% | 13% | 21% | 64%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
apply/src/awsqs_kubernetes_resource0% | 0% | 15% | 24% | 60%
get/src/awsqs_kubernetes_get0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def handler_init()
in apply/src/awsqs_kubernetes_resource/utils.py
29 11 4
def stabilize_job()
in apply/src/awsqs_kubernetes_resource/utils.py
21 11 4
def run_command()
in apply/src/awsqs_kubernetes_resource/utils.py
33 10 3
def put_function()
in apply/src/awsqs_kubernetes_resource/vpc.py
49 6 2
def generate_name()
in apply/src/awsqs_kubernetes_resource/utils.py
11 5 3
def this_invoke_is_inside_vpc()
in apply/src/awsqs_kubernetes_resource/vpc.py
17 5 2
def update_function_config()
in apply/src/awsqs_kubernetes_resource/vpc.py
16 5 2
def build_model()
in apply/src/awsqs_kubernetes_resource/utils.py
7 4 2
def get_model()
in apply/src/awsqs_kubernetes_resource/utils.py
13 4 2
def invoke_function()
in apply/src/awsqs_kubernetes_resource/vpc.py
15 4 3
def http_get()
in apply/src/awsqs_kubernetes_resource/utils.py
11 3 1
def add_idempotency_token()
in apply/src/awsqs_kubernetes_resource/utils.py
6 3 2
def log_output()
in apply/src/awsqs_kubernetes_resource/utils.py
5 3 1
def s3_get()
in apply/src/awsqs_kubernetes_resource/utils.py
11 2 2
def create_kubeconfig()
in apply/src/awsqs_kubernetes_resource/utils.py
15 2 2
def json_serial()
in apply/src/awsqs_kubernetes_resource/utils.py
4 2 1
def proxy_wrap()
in apply/src/awsqs_kubernetes_resource/utils.py
9 2 2
def proxy_call()
in apply/src/awsqs_kubernetes_resource/vpc.py
10 2 4
def random_string()
in apply/src/awsqs_kubernetes_resource/vpc.py
2 2 1
def delete_function()
in apply/src/awsqs_kubernetes_resource/vpc.py
6 2 2