aws / aws-toolkit-azure-devops
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 321 units with 5,073 lines of code in units (58.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 12 medium complex units (644 lines of code)
    • 31 simple units (1,202 lines of code)
    • 278 very simple units (3,227 lines of code)
0% | 0% | 12% | 23% | 63%
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% | 12% | 23% | 63%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/tasks/LambdaDeployFunction0% | 0% | 34% | 8% | 57%
src/tasks/S3Upload0% | 0% | 38% | 0% | 61%
src/tasks/CloudFormationCreateOrUpdateStack0% | 0% | 13% | 29% | 57%
src/tasks/SystemsManagerRunCommand0% | 0% | 25% | 0% | 74%
src/lib0% | 0% | 6% | 27% | 66%
src/tasks/BeanstalkDeployApplication0% | 0% | 24% | 26% | 49%
build-scripts0% | 0% | 18% | 23% | 57%
src/tasks/CloudFormationExecuteChangeSet0% | 0% | 51% | 0% | 48%
src/tasks/S3Download0% | 0% | 0% | 50% | 49%
src/tasks/SecretsManagerCreateOrUpdateSecret0% | 0% | 0% | 44% | 55%
src/tasks/LambdaNETCoreDeploy0% | 0% | 0% | 40% | 59%
src/tasks/BeanstalkCreateApplicationVersion0% | 0% | 0% | 56% | 43%
src/tasks/CodeDeployDeployApplication0% | 0% | 0% | 17% | 82%
src/tasks/ECRPushImage0% | 0% | 0% | 35% | 64%
src/tasks/AWSShellScript0% | 0% | 0% | 35% | 64%
src/tasks/LambdaInvokeFunction0% | 0% | 0% | 70% | 29%
src/tasks/ECRPullImage0% | 0% | 0% | 53% | 46%
src/tasks/SystemsManagerGetParameter0% | 0% | 0% | 21% | 78%
src/tasks/SendMessage0% | 0% | 0% | 0% | 100%
src/tasks/SystemsManagerSetParameter0% | 0% | 0% | 0% | 100%
src/tasks/AWSCLI0% | 0% | 0% | 0% | 100%
src/tasks/CloudFormationDeleteStack0% | 0% | 0% | 0% | 100%
src/tasks/SecretsManagerGetSecret0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
77 20 4
public async execute()
in src/tasks/SystemsManagerRunCommand/TaskOperations.ts
81 19 0
export function buildTaskParameters()
in src/tasks/CloudFormationCreateOrUpdateStack/TaskParameters.ts
4 18 0
private async waitForDeploymentCompletion()
in src/tasks/BeanstalkDeployApplication/TaskOperations.ts
65 17 4
private async updateFunction()
in src/tasks/LambdaDeployFunction/TaskOperations.ts
58 14 0
private async createFunction()
in src/tasks/LambdaDeployFunction/TaskOperations.ts
57 14 0
private buildS3Request()
in src/tasks/S3Upload/TaskOperations.ts
36 13 2
private async createOrUpdateWithChangeSet()
in src/tasks/CloudFormationCreateOrUpdateStack/TaskOperations.ts
79 13 1
function createResjson()
in build-scripts/generateResources.ts
43 13 2
private async uploadFiles()
in src/tasks/S3Upload/TaskOperations.ts
68 12 0
function validateTask()
in build-scripts/generateResources.ts
18 12 1
public async execute()
in src/tasks/CloudFormationExecuteChangeSet/TaskOperations.ts
58 11 0
private async downloadFiles()
in src/tasks/S3Download/TaskOperations.ts
48 10 0
private async updateSecret()
in src/tasks/SecretsManagerCreateOrUpdateSecret/TaskOperations.ts
41 10 0
export function buildTaskParameters()
in src/tasks/BeanstalkDeployApplication/TaskParameters.ts
5 10 0
public async execute()
in src/tasks/AWSShellScript/TaskOperations.ts
43 9 0
public async execute()
in src/tasks/ECRPushImage/TaskOperations.ts
48 9 0
private async createSecret()
in src/tasks/SecretsManagerCreateOrUpdateSecret/TaskOperations.ts
34 9 0
private async updateStack()
in src/tasks/CloudFormationCreateOrUpdateStack/TaskOperations.ts
67 9 0
function generateTaskLoc()
in build-scripts/generateResources.ts
32 9 2