aws-cloudformation / aws-cloudformation-resource-providers-ec2-acmcerts
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 13 units with 247 lines of code in units (56.0% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 5 medium size units (192 lines of code)
    • 2 small units (29 lines of code)
    • 6 very small units (26 lines of code)
0% | 0% | 77% | 11% | 10%
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% | 77% | 11% | 10%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
aws-ec2-enclavecertificateiamroleassociation/src/main/java/software/amazon/ec2/enclavecertificateiamroleassociation0% | 0% | 77% | 11% | 10%
Alternative Visuals
Longest Units
Top 13 longest units
Unit# linesMcCabe index# params
protected ProgressEvent handleRequest()
in aws-ec2-enclavecertificateiamroleassociation/src/main/java/software/amazon/ec2/enclavecertificateiamroleassociation/CreateHandler.java
49 3 5
protected abstract ProgressEvent handleRequest()
in aws-ec2-enclavecertificateiamroleassociation/src/main/java/software/amazon/ec2/enclavecertificateiamroleassociation/BaseHandlerStd.java
48 15 5
protected ProgressEvent handleRequest()
in aws-ec2-enclavecertificateiamroleassociation/src/main/java/software/amazon/ec2/enclavecertificateiamroleassociation/DeleteHandler.java
39 3 5
protected ProgressEvent handleRequest()
in aws-ec2-enclavecertificateiamroleassociation/src/main/java/software/amazon/ec2/enclavecertificateiamroleassociation/ReadHandler.java
32 3 5
protected ProgressEvent handleRequest()
in aws-ec2-enclavecertificateiamroleassociation/src/main/java/software/amazon/ec2/enclavecertificateiamroleassociation/ListHandler.java
24 2 5
public static AssociatedRole getAssociatedRole()
in aws-ec2-enclavecertificateiamroleassociation/src/main/java/software/amazon/ec2/enclavecertificateiamroleassociation/Helper.java
18 3 3
static List translateForList()
in aws-ec2-enclavecertificateiamroleassociation/src/main/java/software/amazon/ec2/enclavecertificateiamroleassociation/Translator.java
11 1 2
public ProgressEvent handleRequest()
in aws-ec2-enclavecertificateiamroleassociation/src/main/java/software/amazon/ec2/enclavecertificateiamroleassociation/BaseHandlerStd.java
7 2 4
protected static void validateNotNull()
in aws-ec2-enclavecertificateiamroleassociation/src/main/java/software/amazon/ec2/enclavecertificateiamroleassociation/BaseHandlerStd.java
5 2 2
static Stream streamOfOrEmpty()
in aws-ec2-enclavecertificateiamroleassociation/src/main/java/software/amazon/ec2/enclavecertificateiamroleassociation/Translator.java
5 1 1
public static Ec2Client getClient()
in aws-ec2-enclavecertificateiamroleassociation/src/main/java/software/amazon/ec2/enclavecertificateiamroleassociation/ClientBuilder.java
5 1 0
public Configuration()
in aws-ec2-enclavecertificateiamroleassociation/src/main/java/software/amazon/ec2/enclavecertificateiamroleassociation/Configuration.java
3 1 0
private Translator()
in aws-ec2-enclavecertificateiamroleassociation/src/main/java/software/amazon/ec2/enclavecertificateiamroleassociation/Translator.java
1 1 0