aws-cloudformation / cloudformation-cli-typescript-plugin
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 119 units with 1,671 lines of code in units (61.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (290 lines of code)
    • 9 simple units (246 lines of code)
    • 106 very simple units (1,135 lines of code)
0% | 0% | 17% | 14% | 67%
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% | 20% | 14% | 64%
py0% | 0% | 0% | 14% | 85%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 0% | 21% | 13% | 64%
python/rpdk/typescript0% | 0% | 0% | 14% | 85%
python/rpdk/typescript/templates0% | 0% | 0% | 28% | 71%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public async entrypoint()
in src/resource.ts
112 13 2
public async entrypoint()
in src/resource.ts
106 13 2
protected async publishMessage()
in src/log-delivery.ts
48 12 2
24 11 2
get()
in src/proxy.ts
41 8 2
public getPrimaryIdentifier()
in python/rpdk/typescript/templates/models.ts
16 8 0
23 7 1
def resolve_type()
in python/rpdk/typescript/resolver.py
18 7 2
def translate_type()
in python/rpdk/typescript/resolver.py
16 7 1
private async doesFolderExist()
in src/log-delivery.ts
29 6 0
50 6 2
44 6 2
public getAdditionalIdentifiers()
in python/rpdk/typescript/templates/models.ts
9 6 0
async publishMetric()
in src/metrics.ts
29 5 5
private async createLogStream()
in src/log-delivery.ts
18 5 0
protected async publishMessage()
in src/log-delivery.ts
28 5 2
public async prepareFolder()
in src/log-delivery.ts
19 5 0
private async createBucket()
in src/log-delivery.ts
18 5 0
78 5 6
17 5 0