aws-quickstart / quickstart-git2s3
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 149 units with 1,284 lines of code in units (52.7% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (162 lines of code)
    • 4 medium complex units (163 lines of code)
    • 16 simple units (293 lines of code)
    • 128 very simple units (666 lines of code)
0% | 12% | 12% | 22% | 51%
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% | 12% | 12% | 22% | 51%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
functions/source/GitPullS30% | 13% | 11% | 24% | 49%
functions/source/DeleteBucketContents0% | 0% | 55% | 0% | 44%
functions/source/CreateSSHKey0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def lambda_handler()
in functions/source/GitPullS3/lambda_function.py
162 44 2
def _ip_int_from_string()
in functions/source/GitPullS3/ipaddress.py
69 19 2
def collapse_addresses()
in functions/source/GitPullS3/ipaddress.py
28 16 1
def lambda_handler()
in functions/source/DeleteBucketContents/lambda_function.py
29 13 2
def __init__()
in functions/source/GitPullS3/ipaddress.py
37 12 3
def summarize_address_range()
in functions/source/GitPullS3/ipaddress.py
26 9 2
def subnets()
in functions/source/GitPullS3/ipaddress.py
23 8 3
def _compress_hextets()
in functions/source/GitPullS3/ipaddress.py
25 8 2
def _compat_to_bytes()
in functions/source/GitPullS3/ipaddress.py
13 7 3
def _collapse_addresses_internal()
in functions/source/GitPullS3/ipaddress.py
19 7 1
def address_exclude()
in functions/source/GitPullS3/ipaddress.py
32 7 2
def subnet_of()
in functions/source/GitPullS3/ipaddress.py
10 7 2
def supernet_of()
in functions/source/GitPullS3/ipaddress.py
10 7 2
def _make_netmask()
in functions/source/GitPullS3/ipaddress.py
12 7 2
def _parse_octet()
in functions/source/GitPullS3/ipaddress.py
16 7 2
def _prefix_from_ip_string()
in functions/source/GitPullS3/ipaddress.py
14 6 2
def __lt__()
in functions/source/GitPullS3/ipaddress.py
14 6 2
def compare_networks()
in functions/source/GitPullS3/ipaddress.py
13 6 2
def supernet()
in functions/source/GitPullS3/ipaddress.py
18 6 3
def _is_hostmask()
in functions/source/GitPullS3/ipaddress.py
11 6 2