aws-quickstart / ssp-amazon-eks
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 120 units with 1,333 lines of code in units (32.7% 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 (65 lines of code)
    • 118 very simple units (1,268 lines of code)
0% | 0% | 0% | 4% | 95%
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% | 4% | 95%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lib/stacks0% | 0% | 0% | 35% | 64%
lib/utils0% | 0% | 0% | 6% | 93%
lib/addons0% | 0% | 0% | 0% | 100%
lib/teams0% | 0% | 0% | 0% | 100%
lib/pipelines0% | 0% | 0% | 0% | 100%
ci0% | 0% | 0% | 0% | 100%
lib/spi0% | 0% | 0% | 0% | 100%
lib/cluster-providers0% | 0% | 0% | 0% | 100%
lib/resource-providers0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
constructor()
in lib/stacks/eks-blueprint-stack.ts
46 9 3
export async function getSecretValue()
in lib/utils/secrets-manager-utils.ts
19 6 2
protected async createSecretKey()
in lib/addons/argocd/index.ts
20 5 2
protected addPolicyToServiceAccount()
in lib/addons/secrets-store/csi-driver-provider-aws-secrets.ts
47 4 0
export function applyYamlFromDir()
in lib/utils/yaml-utils.ts
22 4 3
protected defaultSetupAccess()
in lib/teams/index.ts
10 3 1
10 3 1
protected getOrCreateRole()
in lib/teams/index.ts
39 3 3
protected setupNamespace()
in lib/teams/index.ts
32 3 1
protected createNamespaceIfNeeded()
in lib/addons/velero/index.ts
14 3 4
override deploy()
in lib/addons/appmesh/index.ts
32 3 1
public generate()
in lib/addons/argocd/application.ts
38 3 2
constructor()
in lib/pipelines/code-pipeline.ts
14 3 4
export function tagSubnets()
in lib/utils/vpc-utils.ts
37 3 4
descriptor.value = function()
in lib/utils/addon-utils.ts
19 3 1
constructor()
in lib/spi/types.ts
13 3 3
private validateInput()
in lib/stacks/eks-blueprint-stack.ts
11 3 1
constructor()
in ci/index.ts
60 3 3
protected setupSecrets()
in lib/teams/index.ts
6 2 1
function createParameterObject()
in lib/addons/secrets-store/csi-driver-provider-aws-secrets.ts
10 2 3