aws-cloudformation / aws-cloudformation-resource-providers-events
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 72 units with 796 lines of code in units (62.5% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 5 medium size units (127 lines of code)
    • 29 small units (416 lines of code)
    • 38 very small units (253 lines of code)
0% | 0% | 15% | 52% | 31%
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% | 15% | 52% | 31%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
aws-events-connection/src/main/java/software/amazon/events/connection0% | 0% | 18% | 49% | 31%
aws-events-apidestination/src/main/java/software/amazon/events/apidestination0% | 0% | 9% | 57% | 33%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
protected ProgressEvent handleRequest()
in aws-events-connection/src/main/java/software/amazon/events/connection/CreateHandler.java
31 2 5
private boolean stabilizedOnDelete()
in aws-events-connection/src/main/java/software/amazon/events/connection/DeleteHandler.java
25 3 5
public static void verifyAuthorizationTypeParameterMapping()
in aws-events-connection/src/main/java/software/amazon/events/connection/Utils.java
24 7 1
public ProgressEvent handleRequest()
in aws-events-apidestination/src/main/java/software/amazon/events/apidestination/CreateHandler.java
24 2 5
protected ProgressEvent handleRequest()
in aws-events-connection/src/main/java/software/amazon/events/connection/UpdateHandler.java
23 1 5
private Boolean isStabilized()
in aws-events-connection/src/main/java/software/amazon/events/connection/CreateHandler.java
20 5 2
private Boolean isStabilized()
in aws-events-connection/src/main/java/software/amazon/events/connection/UpdateHandler.java
20 5 2
public ProgressEvent handleRequest()
in aws-events-apidestination/src/main/java/software/amazon/events/apidestination/UpdateHandler.java
19 1 5
protected ProgressEvent handleRequest()
in aws-events-connection/src/main/java/software/amazon/events/connection/DeleteHandler.java
18 1 5
private static CreateConnectionAuthRequestParameters translateToSdkCreateAuthRequestParameter()
in aws-events-connection/src/main/java/software/amazon/events/connection/Translator.java
18 1 1
private static UpdateConnectionAuthRequestParameters translateToSdkUpdateAuthRequestParameter()
in aws-events-connection/src/main/java/software/amazon/events/connection/Translator.java
18 1 1
private CreateApiDestinationResponse createResource()
in aws-events-apidestination/src/main/java/software/amazon/events/apidestination/CreateHandler.java
16 5 2
protected ProgressEvent handleRequest()
in aws-events-apidestination/src/main/java/software/amazon/events/apidestination/DeleteHandler.java
16 1 5
private UpdateApiDestinationResponse updateResource()
in aws-events-apidestination/src/main/java/software/amazon/events/apidestination/UpdateHandler.java
16 5 2
private UpdateConnectionResponse updateResource()
in aws-events-connection/src/main/java/software/amazon/events/connection/UpdateHandler.java
15 5 2
protected ProgressEvent handleRequest()
in aws-events-apidestination/src/main/java/software/amazon/events/apidestination/ListHandler.java
15 1 5
public ProgressEvent handleRequest()
in aws-events-connection/src/main/java/software/amazon/events/connection/ListHandler.java
14 1 5
private static ConnectionHttpParameters translateToSdkConnectionHttpParameters()
in aws-events-connection/src/main/java/software/amazon/events/connection/Translator.java
14 2 1
protected ProgressEvent handleRequest()
in aws-events-connection/src/main/java/software/amazon/events/connection/ReadHandler.java
14 1 5
protected ProgressEvent handleRequest()
in aws-events-apidestination/src/main/java/software/amazon/events/apidestination/ReadHandler.java
14 1 5