aws / aws-ops-wheel
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 55 units with 784 lines of code in units (20.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (47 lines of code)
    • 8 simple units (190 lines of code)
    • 46 very simple units (547 lines of code)
0% | 0% | 5% | 24% | 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% | 0% | 5% | 24% | 69%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 0% | 17% | 0% | 82%
api0% | 0% | 0% | 32% | 67%
utils0% | 0% | 0% | 44% | 55%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def __exit__()
in _compile_cloudformation_template.py
47 14 4
def __call__()
in api/base.py
27 9 2
def main()
in utils/wheel_feeder.py
72 8 0
def update_participant()
in api/wheel_participant.py
15 7 1
def suggest_participant()
in api/choice_algorithm.py
12 6 1
def select_participant()
in api/choice_algorithm.py
21 6 2
def get_sub_wheel_size()
in api/choice_algorithm.py
8 6 1
def on_participant_deletion()
in api/choice_algorithm.py
19 6 2
16 6 1
def to_response()
in api/base.py
15 5 1
def create_participant()
in api/wheel_participant.py
18 5 1
def suggest_participant()
in api/wheel_participant.py
11 5 1
def find_refs()
in _compile_cloudformation_template.py
12 5 1
def to_update_kwargs()
in api/utils.py
6 4 1
def delete_wheel()
in api/wheel.py
10 4 1
def make_api_path_config()
in _compile_cloudformation_template.py
29 4 2
def delete_participant()
in api/wheel_participant.py
7 3 1
def create_wheel()
in api/wheel.py
16 3 1
def update_wheel()
in api/wheel.py
11 3 1
def _upload_participant()
in utils/wheel_feeder.py
27 3 3