aws-cloudformation / aws-cloudformation-resource-providers-networkfirewall
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 216 units with 2,479 lines of code in units (70.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (129 lines of code)
    • 6 simple units (148 lines of code)
    • 207 very simple units (2,202 lines of code)
0% | 0% | 5% | 5% | 88%
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% | 5% | 5% | 88%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
aws-networkfirewall-loggingconfiguration/src/main/java/software/amazon/networkfirewall/loggingconfiguration0% | 0% | 17% | 13% | 69%
aws-networkfirewall-firewallpolicy/src/main/java/software/amazon/networkfirewall/firewallpolicy0% | 0% | 5% | 2% | 91%
aws-networkfirewall-rulegroup/src/main/java/software/amazon/networkfirewall/rulegroup0% | 0% | 3% | 0% | 96%
aws-networkfirewall-firewall/src/main/java/software/amazon/networkfirewall/firewall0% | 0% | 0% | 13% | 86%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
static void convertTemplateToUpdateLoggingConfigurationCall()
in aws-networkfirewall-loggingconfiguration/src/main/java/software/amazon/networkfirewall/loggingconfiguration/Utils.java
68 14 4
public static void translateToCfnException()
in aws-networkfirewall-firewallpolicy/src/main/java/software/amazon/networkfirewall/firewallpolicy/ExceptionTranslator.java
34 12 1
public static RuntimeException translateToCfnException()
in aws-networkfirewall-rulegroup/src/main/java/software/amazon/networkfirewall/rulegroup/ExceptionTranslator.java
27 11 1
private static FirewallPolicy translatePolicyToSDK()
in aws-networkfirewall-firewallpolicy/src/main/java/software/amazon/networkfirewall/firewallpolicy/Translator.java
14 9 1
private boolean stabilizeSubnets()
in aws-networkfirewall-firewall/src/main/java/software/amazon/networkfirewall/firewall/UpdateHandler.java
31 9 4
private boolean stabilizeFirewallPolicyUpdate()
in aws-networkfirewall-firewall/src/main/java/software/amazon/networkfirewall/firewall/UpdateHandler.java
33 8 5
public ProgressEvent handleRequest()
in aws-networkfirewall-loggingconfiguration/src/main/java/software/amazon/networkfirewall/loggingconfiguration/ListHandler.java
29 7 5
static void executeUpdateLoggingConfigurationRequest()
in aws-networkfirewall-loggingconfiguration/src/main/java/software/amazon/networkfirewall/loggingconfiguration/Utils.java
22 6 4
private CreateFirewallResponse submitCreateFirewallCall()
in aws-networkfirewall-firewall/src/main/java/software/amazon/networkfirewall/firewall/CreateHandler.java
19 6 2
private ProgressEvent verifyResourceExists()
in aws-networkfirewall-rulegroup/src/main/java/software/amazon/networkfirewall/rulegroup/UpdateHandler.java
25 5 1
protected ProgressEvent handleRequest()
in aws-networkfirewall-loggingconfiguration/src/main/java/software/amazon/networkfirewall/loggingconfiguration/DeleteHandler.java
23 5 5
protected ProgressEvent handleRequest()
in aws-networkfirewall-loggingconfiguration/src/main/java/software/amazon/networkfirewall/loggingconfiguration/ReadHandler.java
25 5 5
static DescribeLoggingConfigurationResponse describeLoggingConfigurationCall()
in aws-networkfirewall-loggingconfiguration/src/main/java/software/amazon/networkfirewall/loggingconfiguration/Utils.java
18 5 2
static boolean isStable()
in aws-networkfirewall-loggingconfiguration/src/main/java/software/amazon/networkfirewall/loggingconfiguration/Utils.java
16 5 2
private Boolean isCreated()
in aws-networkfirewall-firewall/src/main/java/software/amazon/networkfirewall/firewall/CreateHandler.java
25 5 5
private DeleteFirewallResponse submitDeleteFirewallCall()
in aws-networkfirewall-firewall/src/main/java/software/amazon/networkfirewall/firewall/DeleteHandler.java
17 5 2
protected ProgressEvent handleRequest()
in aws-networkfirewall-firewall/src/main/java/software/amazon/networkfirewall/firewall/ReadHandler.java
26 5 5
private static Set translateCustomActionsFromSDK()
in aws-networkfirewall-firewallpolicy/src/main/java/software/amazon/networkfirewall/firewallpolicy/Translator.java
28 4 1
private static List translateCustomActionsToSDK()
in aws-networkfirewall-firewallpolicy/src/main/java/software/amazon/networkfirewall/firewallpolicy/Translator.java
28 4 1
private ProgressEvent updateTags()
in aws-networkfirewall-firewallpolicy/src/main/java/software/amazon/networkfirewall/firewallpolicy/UpdateHandler.java
24 4 1