aws-samples / aws-elemental-mediaconvert-tools
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 36 units with 696 lines of code in units (97.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (220 lines of code)
    • 10 simple units (250 lines of code)
    • 22 very simple units (226 lines of code)
0% | 0% | 31% | 35% | 32%
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% | 31% | 35% | 32%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
clone_mediaconvert_resources0% | 0% | 34% | 36% | 29%
cloudwatch_acl0% | 0% | 0% | 62% | 37%
mediaconvert_ivs_workflow0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def main()
in clone_mediaconvert_resources/clone_mediaconvert_resources.py
74 21 1
def clone()
in clone_mediaconvert_resources/clone_mediaconvert_resources.py
58 14 3
def clean_templates()
in clone_mediaconvert_resources/clone_mediaconvert_resources.py
55 13 3
def clean_queues()
in clone_mediaconvert_resources/clone_mediaconvert_resources.py
33 11 2
def lambda_handler()
in cloudwatch_acl/lambda_function.py
18 9 2
def create_templates()
in clone_mediaconvert_resources/clone_mediaconvert_resources.py
34 8 2
def save_to_file()
in clone_mediaconvert_resources/clone_mediaconvert_resources.py
36 8 3
def clean_presets()
in clone_mediaconvert_resources/clone_mediaconvert_resources.py
33 7 2
def create_presets()
in clone_mediaconvert_resources/clone_mediaconvert_resources.py
26 7 2
def clean_resource_tags()
in clone_mediaconvert_resources/clone_mediaconvert_resources.py
24 7 2
def user_question_config()
in clone_mediaconvert_resources/clone_mediaconvert_resources.py
20 7 1
def get_queues()
in clone_mediaconvert_resources/clone_mediaconvert_resources.py
21 6 2
def get_resource_tags()
in clone_mediaconvert_resources/clone_mediaconvert_resources.py
16 6 2
def create_resource_tags()
in clone_mediaconvert_resources/clone_mediaconvert_resources.py
22 6 3
def get_presets()
in clone_mediaconvert_resources/clone_mediaconvert_resources.py
19 5 2
def create_queues()
in clone_mediaconvert_resources/clone_mediaconvert_resources.py
19 5 2
def get_templates()
in clone_mediaconvert_resources/clone_mediaconvert_resources.py
20 5 3
def check_config()
in clone_mediaconvert_resources/clone_mediaconvert_resources.py
28 5 0
def input_is_valid()
in clone_mediaconvert_resources/clone_mediaconvert_resources.py
5 4 1
def is_valid_config_region()
in clone_mediaconvert_resources/clone_mediaconvert_resources.py
11 3 1