aws-cloudformation / aws-cloudformation-resource-providers-wafv2
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 159 units with 1,834 lines of code in units (57.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (27 lines of code)
    • 5 simple units (166 lines of code)
    • 153 very simple units (1,641 lines of code)
0% | 0% | 1% | 9% | 89%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
java0% | 0% | 1% | 9% | 89%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
aws-wafv2-loggingconfiguration/src0% | 0% | 9% | 9% | 80%
aws-wafv2-webacl/src0% | 0% | 0% | 12% | 87%
aws-wafv2-rulegroup/src0% | 0% | 0% | 13% | 86%
aws-wafv2-commons/src0% | 0% | 0% | 30% | 69%
aws-wafv2-webaclassociation/src0% | 0% | 0% | 0% | 100%
aws-wafv2-regexpatternset/src0% | 0% | 0% | 0% | 100%
aws-wafv2-ipset/src0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public ProgressEvent handleError()
in aws-wafv2-loggingconfiguration/src/main/java/software/amazon/wafv2/loggingconfiguration/BaseHandlerStd.java
27 11 5
public String getPropertyName()
in aws-wafv2-commons/src/main/java/com/amazonaws/mapstruct/accessor/AWSSDKAccessorNamingStrategy.java
16 8 1
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-webacl/src/main/java/com/amazonaws/wafv2/webacl/CreateHandler.java
48 6 4
protected ProgressEvent handleRequest()
in aws-wafv2-loggingconfiguration/src/main/java/software/amazon/wafv2/loggingconfiguration/UpdateHandler.java
26 6 5
public ProgressEvent handleRequest()
in aws-wafv2-rulegroup/src/main/java/com/amazonaws/wafv2/rulegroup/CreateHandler.java
48 6 4
public static HandlerErrorCode translateExceptionIntoErrorCode()
in aws-wafv2-commons/src/main/java/com/amazonaws/wafv2/commons/ExceptionTranslationWrapper.java
9 5 1
public boolean isGetterMethod()
in aws-wafv2-commons/src/main/java/com/amazonaws/mapstruct/accessor/AWSSDKAccessorNamingStrategy.java
10 5 1
default ByteMatchStatement convert()
in aws-wafv2-webacl/src/main/java/com/amazonaws/wafv2/webacl/converters/StatementConverter.java
19 5 1
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-webacl/src/main/java/com/amazonaws/wafv2/webacl/UpdateHandler.java
45 5 4
public ProgressEvent handleRequest()
in aws-wafv2-webaclassociation/src/main/java/com/amazonaws/wafv2/webaclassociation/CreateHandler.java
53 5 4
protected ProgressEvent handleRequest()
in aws-wafv2-loggingconfiguration/src/main/java/software/amazon/wafv2/loggingconfiguration/CreateHandler.java
22 5 5
default ByteMatchStatement convert()
in aws-wafv2-rulegroup/src/main/java/com/amazonaws/wafv2/rulegroup/converters/StatementConverter.java
19 5 1
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-rulegroup/src/main/java/com/amazonaws/wafv2/rulegroup/UpdateHandler.java
45 5 4
private boolean isEligibleSetter()
in aws-wafv2-commons/src/main/java/com/amazonaws/mapstruct/accessor/AWSSDKAccessorNamingStrategy.java
10 4 1
public ProgressEvent handleRequest()
in aws-wafv2-webaclassociation/src/main/java/com/amazonaws/wafv2/webaclassociation/DeleteHandler.java
33 4 4
protected ProgressEvent preExistanceCheck()
in aws-wafv2-loggingconfiguration/src/main/java/software/amazon/wafv2/loggingconfiguration/CreateHandler.java
23 4 4
public ProgressEvent handleRequest()
in aws-wafv2-regexpatternset/src/main/java/com/amazonaws/wafv2/regexpatternset/CreateHandler.java
27 3 4