awslabs / aws-jwt-verify
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 73 units with 1,047 lines of code in units (57.3% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 16 medium size units (489 lines of code)
    • 25 small units (367 lines of code)
    • 32 very small units (191 lines of code)
0% | 0% | 46% | 35% | 18%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 0% | 46% | 35% | 18%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 0% | 46% | 35% | 18%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
50 6 1
42 7 4
40 2 3
35 3 7
35 18 1
34 5 3
31 5 2
29 3 1
28 4 4
28 3 1
protected constructor()
in src/jwt-rsa.ts
25 5 2
25 1 2
22 3 4
public verifySync()
in src/cognito-verifier.ts
22 4 2
public async verify()
in src/cognito-verifier.ts
22 4 2
21 6 2
19 4 2
19 2 1
18 2 1
18 8 1