aws-cloudformation / aws-cloudformation-resource-providers-memorydb
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 211 units with 2,286 lines of code in units (67.5% of code).
    • 0 very long units (0 lines of code)
    • 2 long units (103 lines of code)
    • 19 medium size units (544 lines of code)
    • 66 small units (945 lines of code)
    • 124 very small units (694 lines of code)
0% | 4% | 23% | 41% | 30%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java0% | 4% | 23% | 41% | 30%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
aws-memorydb-acl/src0% | 11% | 23% | 38% | 25%
aws-memorydb-cluster/src0% | 9% | 31% | 30% | 28%
aws-memorydb-parametergroup/src0% | 0% | 28% | 33% | 38%
aws-memorydb-user/src0% | 0% | 27% | 47% | 24%
aws-memorydb-subnetgroup/src0% | 0% | 5% | 59% | 34%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
private ProgressEvent updateACL()
in aws-memorydb-acl/src/main/java/software/amazon/memorydb/acl/UpdateHandler.java
52 6 4
private boolean isUpdateNeeded()
in aws-memorydb-cluster/src/main/java/software/amazon/memorydb/cluster/UpdateHandler.java
51 14 4
static UpdateClusterRequest translateToUpdateRequest()
in aws-memorydb-cluster/src/main/java/software/amazon/memorydb/cluster/Translator.java
49 14 2
protected ProgressEvent waitForStabilize()
in aws-memorydb-parametergroup/src/main/java/software/amazon/memorydb/parametergroup/UpdateHandler.java
37 11 4
protected ProgressEvent updateParameterGroup()
in aws-memorydb-parametergroup/src/main/java/software/amazon/memorydb/parametergroup/UpdateHandler.java
37 8 4
ProgressEvent updateCluster()
in aws-memorydb-cluster/src/main/java/software/amazon/memorydb/cluster/UpdateHandler.java
33 6 6
protected ProgressEvent handleRequest()
in aws-memorydb-user/src/main/java/software/amazon/memorydb/user/DeleteHandler.java
30 2 5
protected abstract ProgressEvent handleRequest()
in aws-memorydb-user/src/main/java/software/amazon/memorydb/user/BaseHandlerStd.java
29 4 5
private void handleTagging()
in aws-memorydb-user/src/main/java/software/amazon/memorydb/user/UpdateHandler.java
29 5 4
protected abstract ProgressEvent handleRequest()
in aws-memorydb-acl/src/main/java/software/amazon/memorydb/acl/BaseHandlerStd.java
29 4 5
private void handleTagging()
in aws-memorydb-acl/src/main/java/software/amazon/memorydb/acl/UpdateHandler.java
29 5 4
static ResourceModel translateFromReadResponse()
in aws-memorydb-cluster/src/main/java/software/amazon/memorydb/cluster/Translator.java
27 1 1
static CreateClusterRequest translateToCreateRequest()
in aws-memorydb-cluster/src/main/java/software/amazon/memorydb/cluster/Translator.java
25 1 2
protected ProgressEvent handleRequest()
in aws-memorydb-acl/src/main/java/software/amazon/memorydb/acl/CreateHandler.java
25 2 5
protected ProgressEvent handleRequest()
in aws-memorydb-subnetgroup/src/main/java/software/amazon/memorydb/subnetgroup/CreateHandler.java
25 3 5
protected ProgressEvent handleRequest()
in aws-memorydb-cluster/src/main/java/software/amazon/memorydb/cluster/UpdateHandler.java
24 1 5
protected abstract ProgressEvent handleRequest()
in aws-memorydb-parametergroup/src/main/java/software/amazon/memorydb/parametergroup/BaseHandlerStd.java
24 2 5
Set getDefaultParametersForRemovedParams()
in aws-memorydb-parametergroup/src/main/java/software/amazon/memorydb/parametergroup/UpdateHandler.java
24 6 3
private ProgressEvent deleteAcl()
in aws-memorydb-acl/src/main/java/software/amazon/memorydb/acl/DeleteHandler.java
24 2 5
protected ProgressEvent handleRequest()
in aws-memorydb-user/src/main/java/software/amazon/memorydb/user/CreateHandler.java
23 2 5