aws-cloudformation / aws-cloudformation-resource-providers-wafv2
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 159 units with 1,834 lines of code in units (57.3% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (53 lines of code)
    • 28 medium size units (887 lines of code)
    • 34 small units (520 lines of code)
    • 96 very small units (374 lines of code)
0% | 2% | 48% | 28% | 20%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java0% | 2% | 48% | 28% | 20%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
aws-wafv2-webaclassociation/src0% | 22% | 25% | 33% | 17%
aws-wafv2-rulegroup/src0% | 0% | 63% | 20% | 16%
aws-wafv2-webacl/src0% | 0% | 61% | 19% | 19%
aws-wafv2-regexpatternset/src0% | 0% | 58% | 33% | 8%
aws-wafv2-ipset/src0% | 0% | 50% | 32% | 17%
aws-wafv2-loggingconfiguration/src0% | 0% | 35% | 33% | 30%
aws-wafv2-commons/src0% | 0% | 19% | 38% | 41%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public ProgressEvent handleRequest()
in aws-wafv2-webaclassociation/src/main/java/com/amazonaws/wafv2/webaclassociation/CreateHandler.java
53 5 4
public ProgressEvent handleRequest()
in aws-wafv2-webacl/src/main/java/com/amazonaws/wafv2/webacl/CreateHandler.java
48 6 4
public ProgressEvent handleRequest()
in aws-wafv2-rulegroup/src/main/java/com/amazonaws/wafv2/rulegroup/CreateHandler.java
48 6 4
public ProgressEvent handleRequest()
in aws-wafv2-webacl/src/main/java/com/amazonaws/wafv2/webacl/UpdateHandler.java
45 5 4
public ProgressEvent handleRequest()
in aws-wafv2-rulegroup/src/main/java/com/amazonaws/wafv2/rulegroup/ReadHandler.java
45 3 4
public ProgressEvent handleRequest()
in aws-wafv2-rulegroup/src/main/java/com/amazonaws/wafv2/rulegroup/UpdateHandler.java
45 5 4
public ProgressEvent handleRequest()
in aws-wafv2-webacl/src/main/java/com/amazonaws/wafv2/webacl/ReadHandler.java
43 3 4
public ProgressEvent handleRequest()
in aws-wafv2-webacl/src/main/java/com/amazonaws/wafv2/webacl/DeleteHandler.java
39 5 4
public ProgressEvent handleRequest()
in aws-wafv2-rulegroup/src/main/java/com/amazonaws/wafv2/rulegroup/DeleteHandler.java
39 5 4
public ProgressEvent handleRequest()
in aws-wafv2-regexpatternset/src/main/java/com/amazonaws/wafv2/regexpatternset/ReadHandler.java
37 2 4
public ProgressEvent handleRequest()
in aws-wafv2-ipset/src/main/java/com/amazonaws/wafv2/ipset/ReadHandler.java
35 2 4
public ProgressEvent handleRequest()
in aws-wafv2-webaclassociation/src/main/java/com/amazonaws/wafv2/webaclassociation/DeleteHandler.java
33 4 4
private ExceptionTranslationWrapper createWebACLExceptionWrapper()
in aws-wafv2-webacl/src/main/java/com/amazonaws/wafv2/webacl/CreateHandler.java
29 3 2
private ExceptionTranslationWrapper createRuleGroupExceptionWrapper()
in aws-wafv2-rulegroup/src/main/java/com/amazonaws/wafv2/rulegroup/CreateHandler.java
29 3 2
protected Collection findBuildMethods()
in aws-wafv2-commons/src/main/java/com/amazonaws/mapstruct/builder/AWSSDKBuilderProvider.java
28 6 2
public ProgressEvent handleRequest()
in aws-wafv2-regexpatternset/src/main/java/com/amazonaws/wafv2/regexpatternset/CreateHandler.java
27 3 4
public ProgressEvent handleRequest()
in aws-wafv2-webaclassociation/src/main/java/com/amazonaws/wafv2/webaclassociation/ReadHandler.java
27 2 4
public ProgressEvent handleRequest()
in aws-wafv2-ipset/src/main/java/com/amazonaws/wafv2/ipset/CreateHandler.java
27 3 4
public ProgressEvent handleError()
in aws-wafv2-loggingconfiguration/src/main/java/software/amazon/wafv2/loggingconfiguration/BaseHandlerStd.java
27 11 5
private ExceptionTranslationWrapper updateWebACLExceptionWrapper()
in aws-wafv2-webacl/src/main/java/com/amazonaws/wafv2/webacl/UpdateHandler.java
26 2 2