aws-samples / cdk-keycloak
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 16 units with 320 lines of code in units (72.4% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (97 lines of code)
    • 4 medium size units (121 lines of code)
    • 4 small units (72 lines of code)
    • 7 very small units (30 lines of code)
0% | 30% | 37% | 22% | 9%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 30% | 37% | 22% | 9%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 30% | 37% | 22% | 9%
Alternative Visuals
Longest Units
Top 16 longest units
Unit# linesMcCabe index# params
constructor()
in src/keycloak.ts
97 4 3
constructor()
in src/keycloak.ts
36 5 3
constructor()
in src/integ.default.ts
35 2 0
private _createRdsCluster()
in src/keycloak.ts
27 1 1
23 1 1
constructor()
in src/integ.default.ts
20 3 0
19 1 1
18 4 3
constructor()
in src/keycloak.ts
15 3 3
10 1 0
function getOrCreateVpc()
in src/keycloak.ts
7 3 1
public addDatabase()
in src/keycloak.ts
3 1 1
3 1 1
3 1 1
function printOutput()
in src/keycloak.ts
3 1 3
private constructor()
in src/keycloak.ts
1 1 1