aws / aws-cli
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 2,296 units with 17,710 lines of code in units (70.6% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (251 lines of code)
    • 28 medium complex units (972 lines of code)
    • 130 simple units (2,490 lines of code)
    • 2,136 very simple units (13,997 lines of code)
0% | 1% | 5% | 14% | 79%
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% | 1% | 5% | 14% | 79%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
awscli/customizations/emr0% | 9% | 9% | 12% | 68%
awscli/customizations/s30% | 2% | 7% | 9% | 80%
awscli/customizations0% | 0% | 10% | 12% | 77%
awscli0% | 0% | 4% | 16% | 78%
awscli/customizations/cloudformation0% | 0% | 13% | 27% | 59%
awscli/customizations/configure0% | 0% | 8% | 15% | 75%
awscli/customizations/cloudtrail0% | 0% | 4% | 31% | 64%
awscli/customizations/ec20% | 0% | 0% | 24% | 75%
awscli/customizations/datapipeline0% | 0% | 0% | 14% | 85%
awscli/customizations/eks0% | 0% | 0% | 20% | 79%
awscli/customizations/codedeploy0% | 0% | 0% | 7% | 92%
awscli/customizations/codeartifact0% | 0% | 0% | 18% | 81%
awscli/bcdoc0% | 0% | 0% | 4% | 95%
awscli/customizations/gamelift0% | 0% | 0% | 45% | 54%
awscli/customizations/ecs0% | 0% | 0% | 13% | 86%
awscli/customizations/history0% | 0% | 0% | 7% | 92%
scripts/performance0% | 0% | 0% | 15% | 84%
awscli/customizations/emrcontainers0% | 0% | 0% | 9% | 90%
awscli/customizations/configservice0% | 0% | 0% | 6% | 93%
awscli/customizations/servicecatalog0% | 0% | 0% | 0% | 100%
awscli/customizations/dlm0% | 0% | 0% | 0% | 100%
doc/source/guzzle_sphinx_theme0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def _run_main_command()
in awscli/customizations/emr/createcluster.py
199 47 3
def call()
in awscli/customizations/s3/comparator.py
52 26 3
def retrieve_stack()
in awscli/customizations/opsworks.py
48 22 2
def _verify_emrfs_args()
in awscli/customizations/emr/emrfsutils.py
31 17 1
def run()
in awscli/customizations/s3/subcommands.py
100 17 1
def prevalidate_arguments()
in awscli/customizations/opsworks.py
30 17 2
def _run_main_command()
in awscli/customizations/emr/modifyclusterattributes.py
29 15 3
def _dist_try_harder()
in awscli/compat.py
33 15 3
def list_files()
in awscli/customizations/s3/filegenerator.py
28 14 3
def list_objects()
in awscli/customizations/s3/filegenerator.py
18 13 3
def _get_dotted_config_value()
in awscli/customizations/configure/get.py
34 13 2
def create_changeset()
in awscli/customizations/cloudformation/deployer.py
46 13 9
def validate_mutually_exclusive()
in awscli/customizations/utils.py
16 12 2
def setup_new_bucket()
in awscli/customizations/cloudtrail/subscribe.py
32 12 4
def _split_with_quotes()
in awscli/utils.py
29 12 1
def aws()
in awscli/testutils.py
36 11 6
def _build_table()
in awscli/formatter.py
19 11 4
def build_applications()
in awscli/customizations/emr/applicationutils.py
54 11 3
def _build_ec2_attributes()
in awscli/customizations/emr/createcluster.py
55 11 3
def validate_and_build_instance_fleets()
in awscli/customizations/emr/instancefleetsutils.py
30 11 1