aws-samples / cdk-bootstrapless-synthesizer
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 564 lines of code in units (78.9% 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 (116 lines of code)
    • 50 very simple units (448 lines of code)
0% | 0% | 0% | 20% | 79%
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
ts0% | 0% | 0% | 14% | 85%
py0% | 0% | 0% | 70% | 29%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 0% | 0% | 16% | 83%
scripts0% | 0% | 0% | 70% | 29%
sample/src0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def renderf()
in scripts/extractdoc.py
37 10 2
public visit()
in src/aspect.ts
22 9 1
7 7 1
def _render()
in scripts/extractdoc.py
8 7 3
42 6 2
region: resolvedOr()
in src/index.ts
23 5 2
19 5 2
public visit()
in src/aspect.ts
13 4 1
31 4 1
public bind()
in src/index.ts
21 3 1
22 3 3
account: resolvedOr()
in src/index.ts
7 3 2
region: resolvedOr()
in src/index.ts
6 3 2
5 3 2
5 3 2
8 3 1
function check()
in src/index.ts
5 3 1
function head()
in src/index.ts
6 3 1
public bind()
in sample/src/main.ts
18 3 1
def main()
in scripts/extractdoc.py
13 3 0