aws-samples / eks-bootstrap-scripts
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 41 units with 435 lines of code in units (23.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (119 lines of code)
    • 6 simple units (133 lines of code)
    • 33 very simple units (183 lines of code)
0% | 0% | 27% | 30% | 42%
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% | 27% | 30% | 42%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
02_bootstrap-scripts-python/bootstrap0% | 0% | 27% | 30% | 42%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def addHelmValues()
in 02_bootstrap-scripts-python/bootstrap/macros.py
67 16 3
def main()
in 02_bootstrap-scripts-python/bootstrap/bootstrap.py
52 13 0
def GetValues()
in 02_bootstrap-scripts-python/bootstrap/context.py
23 9 1
def add_context_from_string()
in 02_bootstrap-scripts-python/bootstrap/context.py
23 8 2
def stringToNestedObject()
in 02_bootstrap-scripts-python/bootstrap/context.py
18 7 4
def run()
in 02_bootstrap-scripts-python/bootstrap/helm.py
16 6 2
def GetValues()
in 02_bootstrap-scripts-python/bootstrap/context.py
27 6 1
def GetValues()
in 02_bootstrap-scripts-python/bootstrap/context.py
26 6 1
def __init__()
in 02_bootstrap-scripts-python/bootstrap/context.py
16 3 3
def evaluate_mapping()
in 02_bootstrap-scripts-python/bootstrap/context.py
11 3 2
def print_values_yaml()
in 02_bootstrap-scripts-python/bootstrap/bootstrap.py
5 2 1
def GetContent()
in 02_bootstrap-scripts-python/bootstrap/context.py
6 2 2
def GetValues()
in 02_bootstrap-scripts-python/bootstrap/context.py
10 2 1
def get_toplevel_iterable()
in 02_bootstrap-scripts-python/bootstrap/context.py
5 2 1
def GetValues()
in 02_bootstrap-scripts-python/bootstrap/context.py
10 2 1
def get_values()
in 02_bootstrap-scripts-python/bootstrap/context.py
5 2 1
def __init__()
in 02_bootstrap-scripts-python/bootstrap/helm.py
8 1 6
def add_args()
in 02_bootstrap-scripts-python/bootstrap/helm.py
2 1 2
def set_main_arg()
in 02_bootstrap-scripts-python/bootstrap/helm.py
2 1 2
def set_chart()
in 02_bootstrap-scripts-python/bootstrap/helm.py
2 1 2