aws-cloudformation / aws-cloudformation-resource-providers-amplify
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 89 units with 1,278 lines of code in units (65.5% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 28 medium size units (796 lines of code)
    • 11 small units (154 lines of code)
    • 50 very small units (328 lines of code)
0% | 0% | 62% | 12% | 25%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java0% | 0% | 62% | 12% | 25%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
aws-amplify-domain/src/main/java/software/amazon/amplify/domain0% | 0% | 69% | 15% | 15%
aws-amplify-app/src/main/java/software/amazon/amplify/app0% | 0% | 55% | 17% | 26%
aws-amplify-branch/src/main/java/software/amazon/amplify/branch0% | 0% | 63% | 3% | 32%
common/src/main/java/software/amazon/amplify/common/utils0% | 0% | 53% | 0% | 46%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
private boolean isStabilized()
in aws-amplify-domain/src/main/java/software/amazon/amplify/domain/CreateHandler.java
40 9 4
static CreateAppRequest translateToCreateRequest()
in aws-amplify-app/src/main/java/software/amazon/amplify/app/Translator.java
39 7 1
static ResourceModel translateFromReadResponse()
in aws-amplify-app/src/main/java/software/amazon/amplify/app/Translator.java
37 5 1
static UpdateAppRequest translateToUpdateRequest()
in aws-amplify-app/src/main/java/software/amazon/amplify/app/Translator.java
37 6 1
protected ProgressEvent handleRequest()
in aws-amplify-domain/src/main/java/software/amazon/amplify/domain/CreateHandler.java
36 2 5
private boolean isStabilized()
in aws-amplify-domain/src/main/java/software/amazon/amplify/domain/UpdateHandler.java
35 4 4
protected ProgressEvent handleRequest()
in aws-amplify-app/src/main/java/software/amazon/amplify/app/CreateHandler.java
32 2 5
protected ProgressEvent handleRequest()
in aws-amplify-branch/src/main/java/software/amazon/amplify/branch/CreateHandler.java
32 2 5
protected ProgressEvent handleRequest()
in aws-amplify-app/src/main/java/software/amazon/amplify/app/UpdateHandler.java
30 1 5
public static AwsResponse execute()
in common/src/main/java/software/amazon/amplify/common/utils/ClientWrapper.java
30 7 6
protected ProgressEvent handleRequest()
in aws-amplify-domain/src/main/java/software/amazon/amplify/domain/UpdateHandler.java
30 1 5
protected ProgressEvent handleRequest()
in aws-amplify-branch/src/main/java/software/amazon/amplify/branch/UpdateHandler.java
30 1 5
protected ProgressEvent handleRequest()
in aws-amplify-domain/src/main/java/software/amazon/amplify/domain/DeleteHandler.java
27 1 5
private boolean isStabilized()
in aws-amplify-domain/src/main/java/software/amazon/amplify/domain/DeleteHandler.java
27 3 4
static CreateBranchRequest translateToCreateRequest()
in aws-amplify-branch/src/main/java/software/amazon/amplify/branch/Translator.java
26 4 1
protected ProgressEvent handleRequest()
in aws-amplify-app/src/main/java/software/amazon/amplify/app/DeleteHandler.java
25 1 5
protected ProgressEvent handleRequest()
in aws-amplify-app/src/main/java/software/amazon/amplify/app/ReadHandler.java
25 1 5
protected ProgressEvent handleRequest()
in aws-amplify-domain/src/main/java/software/amazon/amplify/domain/ReadHandler.java
25 1 5
protected ProgressEvent handleRequest()
in aws-amplify-branch/src/main/java/software/amazon/amplify/branch/DeleteHandler.java
25 1 5
protected ProgressEvent handleRequest()
in aws-amplify-branch/src/main/java/software/amazon/amplify/branch/ReadHandler.java
25 1 5