awslabs / amazon-emr-on-eks-custom-image-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 71 units with 411 lines of code in units (30.4% 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)
    • 2 simple units (26 lines of code)
    • 69 very simple units (385 lines of code)
0% | 0% | 0% | 6% | 93%
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% | 6% | 93%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
custom_image_cli/validation_tool/validation_tests0% | 0% | 0% | 22% | 77%
custom_image_cli/validation_tool/validation_models0% | 0% | 0% | 0% | 100%
custom_image_cli/helper0% | 0% | 0% | 0% | 100%
custom_image_cli/commands0% | 0% | 0% | 0% | 100%
custom_image_cli/validation_tool0% | 0% | 0% | 0% | 100%
custom_image_cli/helper/docker_util0% | 0% | 0% | 0% | 100%
custom_image_cli/cli0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def match()
in custom_image_cli/validation_tool/validation_tests/check_files.py
16 6 4
def match()
in custom_image_cli/validation_tool/validation_tests/check_envs.py
10 6 2
def initiate()
in custom_image_cli/commands/validate_image.py
23 5 4
def check()
in custom_image_cli/validation_tool/validation_tests/check_files.py
10 5 1
def load_validation_info()
in custom_image_cli/validation_tool/validation_helper.py
15 5 4
def check()
in custom_image_cli/validation_tool/validation_tests/check_manifest.py
27 4 1
def print_validate_completion_message()
in custom_image_cli/helper/print_message.py
7 2 1
def docker_run()
in custom_image_cli/helper/docker_util/docker_cl.py
4 2 3
def close_docker()
in custom_image_cli/helper/docker_util/docker_cl.py
5 2 1
def parse_commandline_arguments()
in custom_image_cli/helper/argument_parser.py
12 2 1
def run()
in custom_image_cli/cli/cli.py
8 2 0
def check()
in custom_image_cli/validation_tool/validation_tests/check_local_job_run.py
13 2 1
def check()
in custom_image_cli/validation_tool/validation_tests/check_envs.py
6 2 1
def validate_all()
in custom_image_cli/validation_tool/validation_helper.py
15 2 7
def check_version()
in custom_image_cli/validation_tool/check_inputs.py
4 2 3
def check_image()
in custom_image_cli/validation_tool/check_inputs.py
4 2 3
def from_yaml()
in custom_image_cli/validation_tool/validation_models/validation_models.py
7 2 3
def from_yaml()
in custom_image_cli/validation_tool/validation_models/validation_models.py
6 2 3
def from_yaml()
in custom_image_cli/validation_tool/validation_models/validation_models.py
7 2 3
def from_yaml()
in custom_image_cli/validation_tool/validation_models/validation_models.py
7 2 3