aws-cloudformation / aws-cloudformation-resource-providers-cloudformation
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 154 units with 1,971 lines of code in units (63.6% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 30 medium size units (783 lines of code)
    • 52 small units (737 lines of code)
    • 72 very small units (451 lines of code)
0% | 0% | 39% | 37% | 22%
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% | 39% | 37% | 22%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
aws-cloudformation-stackset/src0% | 0% | 42% | 32% | 24%
aws-cloudformation-moduleversion/src0% | 0% | 37% | 38% | 24%
aws-cloudformation-resourceversion/src0% | 0% | 46% | 37% | 15%
aws-cloudformation-resourcedefaultversion/src0% | 0% | 48% | 38% | 13%
aws-cloudformation-moduledefaultversion/src0% | 0% | 12% | 56% | 31%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
protected ProgressEvent handleRequest()
in aws-cloudformation-stackset/src/main/java/software/amazon/cloudformation/stackset/ReadHandler.java
41 7 5
private Boolean stabilize()
in aws-cloudformation-moduleversion/src/main/java/software/amazon/cloudformation/moduleversion/CreateHandler.java
37 7 5
protected ProgressEvent deleteStackInstances()
in aws-cloudformation-stackset/src/main/java/software/amazon/cloudformation/stackset/BaseHandlerStd.java
36 5 5
public ProgressEvent handleRequest()
in aws-cloudformation-resourcedefaultversion/src/main/java/software/amazon/cloudformation/resourcedefaultversion/CreateHandler.java
35 3 5
protected ProgressEvent handleRequest()
in aws-cloudformation-resourceversion/src/main/java/software/amazon/cloudformation/resourceversion/CreateHandler.java
33 2 5
public ResourceModel buildModel()
in aws-cloudformation-stackset/src/main/java/software/amazon/cloudformation/stackset/util/ResourceModelBuilder.java
32 6 1
ProgressEvent stabilizeOnCreate()
in aws-cloudformation-resourceversion/src/main/java/software/amazon/cloudformation/resourceversion/CreateHandler.java
30 3 3
protected ProgressEvent updateStackInstances()
in aws-cloudformation-stackset/src/main/java/software/amazon/cloudformation/stackset/BaseHandlerStd.java
28 3 5
private static Set flattenStackInstancesGroup()
in aws-cloudformation-stackset/src/main/java/software/amazon/cloudformation/stackset/util/InstancesAnalyzer.java
28 10 2
protected ProgressEvent createStackInstances()
in aws-cloudformation-stackset/src/main/java/software/amazon/cloudformation/stackset/BaseHandlerStd.java
27 3 5
private static Set groupInstancesByTargets()
in aws-cloudformation-stackset/src/main/java/software/amazon/cloudformation/stackset/util/InstancesAnalyzer.java
27 4 2
private ProgressEvent handleListTypeVersionsResponse()
in aws-cloudformation-moduleversion/src/main/java/software/amazon/cloudformation/moduleversion/ListHandler.java
27 3 3
private ProgressEvent updateStackSet()
in aws-cloudformation-stackset/src/main/java/software/amazon/cloudformation/stackset/UpdateHandler.java
25 2 5
protected ProgressEvent handleRequest()
in aws-cloudformation-stackset/src/main/java/software/amazon/cloudformation/stackset/CreateHandler.java
24 1 5
private ProgressEvent updateManagedExecution()
in aws-cloudformation-stackset/src/main/java/software/amazon/cloudformation/stackset/UpdateHandler.java
24 2 4
public ProgressEvent handleRequest()
in aws-cloudformation-resourcedefaultversion/src/main/java/software/amazon/cloudformation/resourcedefaultversion/ReadHandler.java
24 2 5
protected ProgressEvent handleRequest()
in aws-cloudformation-stackset/src/main/java/software/amazon/cloudformation/stackset/ListHandler.java
23 1 5
public ProgressEvent handleRequest()
in aws-cloudformation-resourceversion/src/main/java/software/amazon/cloudformation/resourceversion/ListHandler.java
23 2 5
protected ProgressEvent handleRequest()
in aws-cloudformation-moduleversion/src/main/java/software/amazon/cloudformation/moduleversion/CreateHandler.java
23 1 5
private static Set aggregateInstancesByRegions()
in aws-cloudformation-stackset/src/main/java/software/amazon/cloudformation/stackset/util/InstancesAnalyzer.java
22 4 2