aws-samples / snowball-uploader
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 89 units with 928 lines of code in units (55.2% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 6 simple units (234 lines of code)
    • 83 very simple units (694 lines of code)
0% | 0% | 0% | 25% | 74%
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% | 0% | 25% | 74%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
old0% | 0% | 0% | 32% | 67%
ROOT0% | 0% | 0% | 15% | 84%
sandbox0% | 0% | 0% | 29% | 70%
diver0% | 0% | 0% | 26% | 73%
s3_diver0% | 0% | 0% | 26% | 73%
validator0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def copy_to_snowball()
in old/snowball_uploader_25-success.py
41 6 4
def copy_to_snowball()
in old/snowball_uploader_26-success.py
41 6 4
def copy_to_snowball()
in sandbox/snowball_uploader_26-inputFile.py
41 6 4
def copy_to_snowball()
in snowball_uploader_26-success.py
41 6 4
def gen_filelist()
in diver/s3_diver_03-test.py
35 6 0
def gen_filelist()
in s3_diver/s3_diver_03-test.py
35 6 0
def gen_filelist()
in old/snowball_uploader_26-success.py
35 5 0
def gen_filelist()
in sandbox/snowball_uploader_26-inputFile.py
35 5 0
def gen_filelist()
in snowball_uploader_26-success.py
35 5 0
def copy_to_snowball()
in diver/s3_diver_03-test.py
40 5 4
def copy_to_snowball()
in s3_diver/s3_diver_03-test.py
40 5 4
def gen_filelist()
in snowball_uploader_27-success-prod.py
35 5 0
def copy_to_snowball()
in snowball_uploader_27-success-prod.py
40 5 4
def gen_filelist()
in old/snowball_uploader_25-success.py
24 4 0
def buf_fifo()
in old/snowball_uploader_25-success.py
8 3 1
def buf_fifo()
in old/snowball_uploader_26-success.py
8 3 1
def get_org_files_list()
in sandbox/snowball_uploader_26-inputFile.py
12 3 1
def buf_fifo()
in sandbox/snowball_uploader_26-inputFile.py
8 3 1
def buf_fifo()
in snowball_uploader_26-success.py
8 3 1
def buf_fifo()
in diver/s3_diver_03-test.py
8 3 1