aws-cloudformation / custom-resource-helper
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 49 units with 359 lines of code in units (82.3% 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)
    • 5 simple units (112 lines of code)
    • 44 very simple units (247 lines of code)
0% | 0% | 0% | 31% | 68%
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% | 32% | 67%
pyi0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
crhelper0% | 0% | 0% | 31% | 68%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def __call__()
in crhelper/resource_helper.py
24 10 3
def format()
in crhelper/log_helper.py
25 8 2
def _send_response()
in crhelper/utils.py
33 8 4
def _polling_init()
in crhelper/resource_helper.py
13 7 2
def _remove_polling()
in crhelper/resource_helper.py
17 6 1
def _cfn_response()
in crhelper/resource_helper.py
8 5 2
def __init__()
in crhelper/resource_helper.py
41 4 7
def _crhelper_init()
in crhelper/resource_helper.py
23 4 3
def _send()
in crhelper/resource_helper.py
18 4 4
def setup()
in crhelper/log_helper.py
11 4 4
def _wait_for_cwlogs()
in crhelper/resource_helper.py
7 3 2
def _wrap_function()
in crhelper/resource_helper.py
7 3 2
def _cleanup_response()
in crhelper/resource_helper.py
4 3 1
def _log_setup()
in crhelper/resource_helper.py
7 2 3
def _get_func()
in crhelper/resource_helper.py
5 2 1
def _rand_string()
in crhelper/resource_helper.py
2 2 1
def generate_physical_id()
in crhelper/resource_helper.py
6 1 2
def _poll_enabled()
in crhelper/resource_helper.py
2 1 1
def create()
in crhelper/resource_helper.py
3 1 2
def update()
in crhelper/resource_helper.py
3 1 2