aws-cloudformation / aws-cloudformation-resource-providers-devops-guru
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 42 units with 597 lines of code in units (59.2% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 8 medium size units (223 lines of code)
    • 18 small units (276 lines of code)
    • 16 very small units (98 lines of code)
0% | 0% | 37% | 46% | 16%
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% | 37% | 46% | 16%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
aws-devopsguru-resourcecollection/src/main/java/software/amazon/devopsguru/resourcecollection0% | 0% | 44% | 41% | 14%
aws-devopsguru-notificationchannel/src/main/java/software/amazon/devopsguru/notificationchannel0% | 0% | 28% | 52% | 18%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
protected UpdateResourceCollectionResponse updateResourceCollection()
in aws-devopsguru-resourcecollection/src/main/java/software/amazon/devopsguru/resourcecollection/BaseHandlerStd.java
42 8 5
protected UpdateResourceCollectionResponse updateResourceCollectionByBatch()
in aws-devopsguru-resourcecollection/src/main/java/software/amazon/devopsguru/resourcecollection/BaseHandlerStd.java
31 6 4
protected abstract ProgressEvent handleRequest()
in aws-devopsguru-resourcecollection/src/main/java/software/amazon/devopsguru/resourcecollection/BaseHandlerStd.java
28 6 5
private AddNotificationChannelResponse createResource()
in aws-devopsguru-notificationchannel/src/main/java/software/amazon/devopsguru/notificationchannel/CreateHandler.java
27 8 4
private UpdateResourceCollectionResponse deleteResource()
in aws-devopsguru-resourcecollection/src/main/java/software/amazon/devopsguru/resourcecollection/DeleteHandler.java
26 5 4
protected abstract ProgressEvent handleRequest()
in aws-devopsguru-notificationchannel/src/main/java/software/amazon/devopsguru/notificationchannel/BaseHandlerStd.java
25 6 5
private RemoveNotificationChannelResponse deleteResource()
in aws-devopsguru-notificationchannel/src/main/java/software/amazon/devopsguru/notificationchannel/DeleteHandler.java
22 6 3
protected List getAllResourceCollection()
in aws-devopsguru-resourcecollection/src/main/java/software/amazon/devopsguru/resourcecollection/BaseHandlerStd.java
22 3 4
protected ProgressEvent handleRequest()
in aws-devopsguru-notificationchannel/src/main/java/software/amazon/devopsguru/notificationchannel/DeleteHandler.java
20 1 5
protected ProgressEvent handleRequest()
in aws-devopsguru-resourcecollection/src/main/java/software/amazon/devopsguru/resourcecollection/DeleteHandler.java
20 1 5
static UpdateResourceCollectionRequest translateToAddResourceCollectionRequest()
in aws-devopsguru-resourcecollection/src/main/java/software/amazon/devopsguru/resourcecollection/Translator.java
20 6 1
private ProgressEvent constructResourceModelFromResponse()
in aws-devopsguru-notificationchannel/src/main/java/software/amazon/devopsguru/notificationchannel/ListHandler.java
18 2 1
protected ProgressEvent handleRequest()
in aws-devopsguru-notificationchannel/src/main/java/software/amazon/devopsguru/notificationchannel/CreateHandler.java
17 1 5
private GetResourceCollectionResponse readResource()
in aws-devopsguru-resourcecollection/src/main/java/software/amazon/devopsguru/resourcecollection/ReadHandler.java
17 1 3
protected ProgressEvent handleRequest()
in aws-devopsguru-resourcecollection/src/main/java/software/amazon/devopsguru/resourcecollection/CreateHandler.java
16 1 5
protected ProgressEvent handleRequest()
in aws-devopsguru-resourcecollection/src/main/java/software/amazon/devopsguru/resourcecollection/UpdateHandler.java
16 1 5
private ProgressEvent checkForPreCreateResourceExistence()
in aws-devopsguru-notificationchannel/src/main/java/software/amazon/devopsguru/notificationchannel/CreateHandler.java
15 3 3
public ProgressEvent handleRequest()
in aws-devopsguru-notificationchannel/src/main/java/software/amazon/devopsguru/notificationchannel/ListHandler.java
14 1 5
private ProgressEvent checkForPreDeleteResourceExistence()
in aws-devopsguru-notificationchannel/src/main/java/software/amazon/devopsguru/notificationchannel/DeleteHandler.java
14 3 3
static ResourceModel translateFromReadResponse()
in aws-devopsguru-resourcecollection/src/main/java/software/amazon/devopsguru/resourcecollection/Translator.java
14 2 1