aws-quickstart / ssp-amazon-eks
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 120 units with 1,333 lines of code in units (32.7% of code).
    • 0 very long units (0 lines of code)
    • 3 long units (177 lines of code)
    • 14 medium size units (490 lines of code)
    • 20 small units (277 lines of code)
    • 83 very small units (389 lines of code)
0% | 13% | 36% | 20% | 29%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 13% | 36% | 20% | 29%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
lib/utils0% | 24% | 34% | 26% | 14%
ci0% | 100% | 0% | 0% | 0%
lib/addons0% | 8% | 44% | 21% | 25%
lib/teams0% | 0% | 48% | 28% | 22%
lib/stacks0% | 0% | 35% | 8% | 56%
lib/pipelines0% | 0% | 28% | 18% | 52%
lib/spi0% | 0% | 0% | 24% | 75%
lib/cluster-providers0% | 0% | 0% | 0% | 100%
lib/resource-providers0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
export function setupClusterLogging()
in lib/utils/cluster-utils.ts
66 2 3
constructor()
in ci/index.ts
60 3 3
private configureQueueMode()
in lib/addons/aws-node-termination-handler/index.ts
51 1 3
protected addPolicyToServiceAccount()
in lib/addons/secrets-store/csi-driver-provider-aws-secrets.ts
47 4 0
47 1 4
constructor()
in lib/stacks/eks-blueprint-stack.ts
46 9 3
protected getOrCreateRole()
in lib/teams/index.ts
39 3 3
async deploy()
in lib/addons/argocd/index.ts
38 2 1
public generate()
in lib/addons/argocd/application.ts
38 3 2
export function tagSubnets()
in lib/utils/vpc-utils.ts
37 3 4
export function tagAsg()
in lib/utils/cluster-utils.ts
35 1 3
protected setupNamespace()
in lib/teams/index.ts
32 3 1
override deploy()
in lib/addons/appmesh/index.ts
32 3 1
private createEvents()
in lib/addons/aws-node-termination-handler/index.ts
29 1 2
protected createSecretProviderClass()
in lib/addons/secrets-store/csi-driver-provider-aws-secrets.ts
27 1 1
export function applyYamlFromDir()
in lib/utils/yaml-utils.ts
22 4 3
public static build()
in lib/pipelines/code-pipeline.ts
21 2 2
protected async createSecretKey()
in lib/addons/argocd/index.ts
20 5 2
export async function getSecretValue()
in lib/utils/secrets-manager-utils.ts
19 6 2
descriptor.value = function()
in lib/utils/addon-utils.ts
19 3 1