aws-cloudformation / aws-cloudformation-resource-providers-amplifyuibuilder
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 65 units with 990 lines of code in units (70.0% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 17 medium size units (464 lines of code)
    • 21 small units (317 lines of code)
    • 27 very small units (209 lines of code)
0% | 0% | 46% | 32% | 21%
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% | 46% | 32% | 21%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
aws-amplifyuibuilder-component/src/main/java/software/amazon/amplifyuibuilder/component0% | 0% | 47% | 35% | 17%
aws-amplifyuibuilder-theme/src/main/java/software/amazon/amplifyuibuilder/theme0% | 0% | 46% | 24% | 29%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
protected ProgressEvent handleRequest()
in aws-amplifyuibuilder-component/src/main/java/software/amazon/amplifyuibuilder/component/UpdateHandler.java
37 1 5
public static AwsResponse execute()
in aws-amplifyuibuilder-theme/src/main/java/software/amazon/amplifyuibuilder/theme/ClientWrapper.java
36 8 6
protected ProgressEvent handleRequest()
in aws-amplifyuibuilder-component/src/main/java/software/amazon/amplifyuibuilder/component/CreateHandler.java
32 1 5
protected abstract ProgressEvent handleRequest()
in aws-amplifyuibuilder-component/src/main/java/software/amazon/amplifyuibuilder/component/BaseHandlerStd.java
31 8 5
protected ProgressEvent handleRequest()
in aws-amplifyuibuilder-theme/src/main/java/software/amazon/amplifyuibuilder/theme/CreateHandler.java
28 1 5
protected UpdateComponentResponse updateComponent()
in aws-amplifyuibuilder-component/src/main/java/software/amazon/amplifyuibuilder/component/BaseHandlerStd.java
27 8 2
protected GetComponentResponse getComponent()
in aws-amplifyuibuilder-component/src/main/java/software/amazon/amplifyuibuilder/component/BaseHandlerStd.java
27 8 2
protected ProgressEvent handleRequest()
in aws-amplifyuibuilder-theme/src/main/java/software/amazon/amplifyuibuilder/theme/UpdateHandler.java
26 3 5
protected ProgressEvent handleRequest()
in aws-amplifyuibuilder-component/src/main/java/software/amazon/amplifyuibuilder/component/DeleteHandler.java
26 1 5
protected DeleteComponentResponse deleteComponent()
in aws-amplifyuibuilder-component/src/main/java/software/amazon/amplifyuibuilder/component/BaseHandlerStd.java
26 8 2
private static Map translateBindingPropertiesFromSDKToCFN()
in aws-amplifyuibuilder-component/src/main/java/software/amazon/amplifyuibuilder/component/Translator.java
26 4 1
protected ProgressEvent handleRequest()
in aws-amplifyuibuilder-component/src/main/java/software/amazon/amplifyuibuilder/component/ReadHandler.java
25 1 5
protected ProgressEvent handleRequest()
in aws-amplifyuibuilder-theme/src/main/java/software/amazon/amplifyuibuilder/theme/DeleteHandler.java
24 1 5
protected ProgressEvent handleRequest()
in aws-amplifyuibuilder-theme/src/main/java/software/amazon/amplifyuibuilder/theme/ReadHandler.java
24 1 5
public ProgressEvent handleRequest()
in aws-amplifyuibuilder-component/src/main/java/software/amazon/amplifyuibuilder/component/ListHandler.java
24 1 5
public static Map translateBindingPropertiesFromCFNToSDK()
in aws-amplifyuibuilder-component/src/main/java/software/amazon/amplifyuibuilder/component/Translator.java
24 3 1
static UpdateComponentRequest translateToUpdateRequest()
in aws-amplifyuibuilder-component/src/main/java/software/amazon/amplifyuibuilder/component/Translator.java
21 1 1
protected ProgressEvent handleRequest()
in aws-amplifyuibuilder-theme/src/main/java/software/amazon/amplifyuibuilder/theme/ListHandler.java
20 1 5
static CreateComponentRequest translateToCreateRequest()
in aws-amplifyuibuilder-component/src/main/java/software/amazon/amplifyuibuilder/component/Translator.java
20 1 1
static ResourceModel translateFromReadResponse()
in aws-amplifyuibuilder-component/src/main/java/software/amazon/amplifyuibuilder/component/Translator.java
19 1 1