aws-samples / api-gateway-auth
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 5 units with 119 lines of code in units (12.3% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (63 lines of code)
    • 1 medium size units (29 lines of code)
    • 2 small units (25 lines of code)
    • 1 very small units (2 lines of code)
0% | 52% | 24% | 21% | 1%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java0% | 53% | 24% | 21% | 0%
js0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
auth-functions/src/main/java/com/auth0% | 53% | 24% | 21% | 0%
auth0-custom-auth-lambda0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 5 longest units
Unit# linesMcCabe index# params
public Object handleRequest()
in auth-functions/src/main/java/com/auth/TrustedStoreCustomResourceHandler.java
63 6 2
public final Object sendResponse()
in auth-functions/src/main/java/com/auth/TrustedStoreCustomResourceHandler.java
29 2 4
public APIGatewayV2HTTPResponse handleRequest()
in auth-functions/src/main/java/com/auth/App.java
14 2 2
public Object handleRequest()
in auth-functions/src/main/java/com/auth/CustomLambdaAuth.java
11 2 2
policyDocument: getPolicyDocument()
in auth0-custom-auth-lambda/lib.js
2 1 2