aws-cloudformation / aws-cloudformation-resource-providers-mwaa
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 62 units with 661 lines of code in units (67.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 2 simple units (59 lines of code)
    • 60 very simple units (602 lines of code)
0% | 0% | 0% | 8% | 91%
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% | 0% | 8% | 91%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
aws-mwaa-environment/src/main/java/software/amazon/mwaa/environment0% | 0% | 0% | 13% | 86%
aws-mwaa-environment/src/main/java/software/amazon/mwaa0% | 0% | 0% | 8% | 91%
aws-mwaa-environment/src/main/java/software/amazon/mwaa/translator0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
protected ProgressEvent handleRequest()
in aws-mwaa-environment/src/main/java/software/amazon/mwaa/environment/UpdateHandler.java
54 6 3
private static boolean areDifferent()
in aws-mwaa-environment/src/main/java/software/amazon/mwaa/TagProcessor.java
5 6 2
protected ProgressEvent handleRequest()
in aws-mwaa-environment/src/main/java/software/amazon/mwaa/environment/CreateHandler.java
36 5 3
protected ProgressEvent handleRequest()
in aws-mwaa-environment/src/main/java/software/amazon/mwaa/environment/DeleteHandler.java
27 4 3
public Map getTagsToAdd()
in aws-mwaa-environment/src/main/java/software/amazon/mwaa/TagProcessor.java
12 4 1
public Collection getTagsToRemove()
in aws-mwaa-environment/src/main/java/software/amazon/mwaa/TagProcessor.java
6 4 1
public static Map toStringToStringMap()
in aws-mwaa-environment/src/main/java/software/amazon/mwaa/translator/TypeTranslator.java
8 3 1
public static String mapToLogString()
in aws-mwaa-environment/src/main/java/software/amazon/mwaa/translator/TypeTranslator.java
12 3 1
public static String collectionToLogString()
in aws-mwaa-environment/src/main/java/software/amazon/mwaa/translator/TypeTranslator.java
11 3 1
private UpdateEnvironmentResponse doUpdateEnvironment()
in aws-mwaa-environment/src/main/java/software/amazon/mwaa/environment/UpdateHandler.java
21 3 4
public static Stream toStreamOfOrEmpty()
in aws-mwaa-environment/src/main/java/software/amazon/mwaa/translator/TypeTranslator.java
3 2 1
public static NetworkConfiguration toApiNetworkConfiguration()
in aws-mwaa-environment/src/main/java/software/amazon/mwaa/translator/TypeTranslator.java
10 2 1
public static UpdateNetworkConfigurationInput toApiUpdateNetworkConfiguration()
in aws-mwaa-environment/src/main/java/software/amazon/mwaa/translator/TypeTranslator.java
9 2 1
public static LoggingConfigurationInput toApiLoggingConfiguration()
in aws-mwaa-environment/src/main/java/software/amazon/mwaa/translator/TypeTranslator.java
13 2 1
public static ModuleLoggingConfigurationInput toApiModuleLoggingConfigurationInput()
in aws-mwaa-environment/src/main/java/software/amazon/mwaa/translator/TypeTranslator.java
10 2 1
public static Map toStringToObjectMap()
in aws-mwaa-environment/src/main/java/software/amazon/mwaa/translator/TypeTranslator.java
8 2 1
private CreateEnvironmentResponse doCreateEnvironment()
in aws-mwaa-environment/src/main/java/software/amazon/mwaa/environment/CreateHandler.java
19 2 3
public final ProgressEvent handleRequest()
in aws-mwaa-environment/src/main/java/software/amazon/mwaa/environment/BaseHandlerStd.java
15 2 4
protected void log()
in aws-mwaa-environment/src/main/java/software/amazon/mwaa/environment/BaseHandlerStd.java
5 2 2
protected Optional getEnvironmentStatus()
in aws-mwaa-environment/src/main/java/software/amazon/mwaa/environment/BaseHandlerStd.java
13 2 2