aws-cloudformation / aws-cloudformation-resource-providers-ecr
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 74 units with 993 lines of code in units (62.0% of code).
    • 0 very long units (0 lines of code)
    • 3 long units (186 lines of code)
    • 12 medium size units (321 lines of code)
    • 15 small units (228 lines of code)
    • 44 very small units (258 lines of code)
0% | 18% | 32% | 22% | 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% | 18% | 32% | 22% | 25%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
aws-ecr-repository/src/main/java/software/amazon/ecr/repository0% | 43% | 10% | 14% | 30%
aws-ecr-replicationconfiguration/src/main/java/software/amazon/ecr/replicationconfiguration0% | 0% | 75% | 4% | 19%
aws-ecr-registrypolicy/src/main/java/software/amazon/ecr/registrypolicy0% | 0% | 22% | 52% | 25%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
protected ProgressEvent handleRequest()
in aws-ecr-repository/src/main/java/software/amazon/ecr/repository/UpdateHandler.java
71 11 5
public static ResourceModel buildModel()
in aws-ecr-repository/src/main/java/software/amazon/ecr/repository/ReadHandler.java
62 11 4
protected ProgressEvent handleRequest()
in aws-ecr-repository/src/main/java/software/amazon/ecr/repository/CreateHandler.java
53 7 5
public ProgressEvent handleRequest()
in aws-ecr-replicationconfiguration/src/main/java/software/amazon/ecr/replicationconfiguration/CreateHandler.java
37 4 5
public ProgressEvent handleRequest()
in aws-ecr-replicationconfiguration/src/main/java/software/amazon/ecr/replicationconfiguration/DeleteHandler.java
37 3 5
public ProgressEvent handleRequest()
in aws-ecr-replicationconfiguration/src/main/java/software/amazon/ecr/replicationconfiguration/ListHandler.java
32 3 5
public ProgressEvent handleRequest()
in aws-ecr-replicationconfiguration/src/main/java/software/amazon/ecr/replicationconfiguration/ReadHandler.java
32 3 5
public ProgressEvent handleRequest()
in aws-ecr-replicationconfiguration/src/main/java/software/amazon/ecr/replicationconfiguration/UpdateHandler.java
29 3 5
private ProgressEvent createResource()
in aws-ecr-registrypolicy/src/main/java/software/amazon/ecr/registrypolicy/CreateHandler.java
23 1 4
protected ProgressEvent handleRequest()
in aws-ecr-registrypolicy/src/main/java/software/amazon/ecr/registrypolicy/DeleteHandler.java
23 1 5
static CreateRepositoryRequest createRepositoryRequest()
in aws-ecr-repository/src/main/java/software/amazon/ecr/repository/Translator.java
22 5 2
protected ProgressEvent handleRequest()
in aws-ecr-repository/src/main/java/software/amazon/ecr/repository/ReadHandler.java
22 2 5
private static ReplicationConfiguration getConfiguration()
in aws-ecr-replicationconfiguration/src/main/java/software/amazon/ecr/replicationconfiguration/Translator.java
22 3 1
public ProgressEvent handleRequest()
in aws-ecr-registrypolicy/src/main/java/software/amazon/ecr/registrypolicy/ListHandler.java
21 2 5
private static List getReplicationRulesList()
in aws-ecr-replicationconfiguration/src/main/java/software/amazon/ecr/replicationconfiguration/Response.java
21 3 1
private ProgressEvent checkForPreCreateResourceExistence()
in aws-ecr-registrypolicy/src/main/java/software/amazon/ecr/registrypolicy/CreateHandler.java
20 2 4
private ProgressEvent updateResource()
in aws-ecr-registrypolicy/src/main/java/software/amazon/ecr/registrypolicy/UpdateHandler.java
20 1 4
protected ProgressEvent handleRequest()
in aws-ecr-repository/src/main/java/software/amazon/ecr/repository/ListHandler.java
19 1 5
protected ProgressEvent handleRequest()
in aws-ecr-repository/src/main/java/software/amazon/ecr/repository/DeleteHandler.java
18 2 5
protected ProgressEvent handleError()
in aws-ecr-registrypolicy/src/main/java/software/amazon/ecr/registrypolicy/BaseHandlerStd.java
16 1 3