aws-amplify / amplify-cli-export-construct
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 22 units with 355 lines of code in units (33.6% 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)
    • 2 simple units (50 lines of code)
    • 20 very simple units (305 lines of code)
0% | 0% | 0% | 14% | 85%
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%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 0% | 0% | 39% | 60%
src/export-backend-asset-handler0% | 0% | 0% | 0% | 100%
src/include-nested-stacks0% | 0% | 0% | 0% | 100%
src/include-nested-stacks/api-rest0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private updatePropsToIncludeEnv()
in src/base-exported-backend.ts
34 7 1
protected filterCategory()
in src/base-exported-backend.ts
16 6 3
private uploadAppSyncFiles()
in src/export-backend-asset-handler/index.ts
35 5 1
protected transformTemplateFile()
in src/base-exported-backend.ts
18 5 2
protected findResourceForNestedStack()
in src/base-exported-backend.ts
16 5 3
private uploadInteractionsLexZip()
in src/export-backend-asset-handler/index.ts
35 3 1
private uploadLambdaZip()
in src/export-backend-asset-handler/index.ts
35 3 1
private uploadLambdaLayerZips()
in src/export-backend-asset-handler/index.ts
29 3 1
private uploadAuthTriggerFiles()
in src/export-backend-asset-handler/index.ts
31 3 1
private validateFilesAndReturnPath()
in src/export-backend-asset-handler/index.ts
11 3 1
private validatePath()
in src/base-exported-backend.ts
11 3 1
private referenceDeploymentBucket()
in src/export-backend-asset-handler/index.ts
13 2 0
private createAuxiliaryFileAsset()
in src/export-backend-asset-handler/index.ts
19 2 0
constructor()
in src/base-exported-backend.ts
3 2 2
protected getExportedDataFromFile()
in src/base-exported-backend.ts
7 2 1
private modifyEnv()
in src/base-exported-backend.ts
9 2 1
constructor()
in src/export-backend-asset-handler/index.ts
10 1 3
constructor()
in src/include-nested-stacks/api-rest/api-rest-include-stack.ts
4 1 2
constructor()
in src/include-nested-stacks/base-included-stack.ts
3 1 2
constructor()
in src/include-nested-stacks/base-included-stack.ts
4 1 1