awslabs / aws-codeseeder
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 67 units with 736 lines of code in units (36.7% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (132 lines of code)
    • 0 medium complex units (0 lines of code)
    • 4 simple units (92 lines of code)
    • 62 very simple units (512 lines of code)
0% | 17% | 0% | 12% | 69%
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% | 17% | 0% | 12% | 69%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
aws_codeseeder0% | 43% | 0% | 0% | 56%
aws_codeseeder/services0% | 0% | 0% | 22% | 77%
aws_codeseeder/commands0% | 0% | 0% | 42% | 57%
example/my_example0% | 0% | 0% | 0% | 100%
images/code-build-image0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def decorator()
in aws_codeseeder/codeseeder.py
132 41 2
def deploy_modules()
in aws_codeseeder/commands/_module_commands.py
24 8 2
def fetch_build_info()
in aws_codeseeder/services/codebuild.py
37 8 1
def list_keys()
in aws_codeseeder/services/s3.py
18 6 1
def does_stack_exist()
in aws_codeseeder/services/cfn.py
13 6 1
def wait()
in aws_codeseeder/services/codebuild.py
18 5 1
def _wait_for_changeset()
in aws_codeseeder/services/cfn.py
18 5 2
def deploy_template()
in aws_codeseeder/services/cfn.py
28 5 4
def deploy_test_stack()
in example/my_example/cli.py
22 4 0
def synth()
in aws_codeseeder/_cfn_seedkit.py
22 4 3
def delete_objects()
in aws_codeseeder/services/s3.py
9 4 2
def _create_changeset()
in aws_codeseeder/services/cfn.py
21 4 4
def _list_files()
in aws_codeseeder/_bundle.py
3 4 1
def remote_hello_world_2()
in example/my_example/cli.py
15 3 1
def deploy_seedkit()
in aws_codeseeder/__main__.py
6 3 4
def deploy_modules()
in aws_codeseeder/__main__.py
6 3 4
def destroy_seedkit()
in aws_codeseeder/commands/_seedkit_commands.py
12 3 1
def _chunkify()
in aws_codeseeder/services/s3.py
3 3 3
def _delete_objects()
in aws_codeseeder/services/s3.py
8 3 3
def delete_bucket()
in aws_codeseeder/services/s3.py
13 3 1