aws-cloudformation / aws-cloudformation-resource-providers-memorydb
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 211 units with 2,286 lines of code in units (67.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (137 lines of code)
    • 7 simple units (198 lines of code)
    • 201 very simple units (1,951 lines of code)
0% | 0% | 5% | 8% | 85%
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% | 8% | 85%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
aws-memorydb-cluster/src0% | 0% | 17% | 8% | 73%
aws-memorydb-parametergroup/src0% | 0% | 8% | 18% | 73%
aws-memorydb-acl/src0% | 0% | 0% | 11% | 88%
aws-memorydb-subnetgroup/src0% | 0% | 0% | 3% | 96%
aws-memorydb-user/src0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
static UpdateClusterRequest translateToUpdateRequest()
in aws-memorydb-cluster/src/main/java/software/amazon/memorydb/cluster/Translator.java
49 14 2
private boolean isUpdateNeeded()
in aws-memorydb-cluster/src/main/java/software/amazon/memorydb/cluster/UpdateHandler.java
51 14 4
protected ProgressEvent waitForStabilize()
in aws-memorydb-parametergroup/src/main/java/software/amazon/memorydb/parametergroup/UpdateHandler.java
37 11 4
protected ProgressEvent updateParameterGroup()
in aws-memorydb-parametergroup/src/main/java/software/amazon/memorydb/parametergroup/UpdateHandler.java
37 8 4
protected T handleExceptions()
in aws-memorydb-cluster/src/main/java/software/amazon/memorydb/cluster/BaseHandlerStd.java
17 7 1
protected T handleExceptions()
in aws-memorydb-parametergroup/src/main/java/software/amazon/memorydb/parametergroup/BaseHandlerStd.java
18 7 1
protected T handleExceptions()
in aws-memorydb-subnetgroup/src/main/java/software/amazon/memorydb/subnetgroup/BaseHandlerStd.java
17 7 1
ProgressEvent updateCluster()
in aws-memorydb-cluster/src/main/java/software/amazon/memorydb/cluster/UpdateHandler.java
33 6 6
Set getDefaultParametersForRemovedParams()
in aws-memorydb-parametergroup/src/main/java/software/amazon/memorydb/parametergroup/UpdateHandler.java
24 6 3
private ProgressEvent updateACL()
in aws-memorydb-acl/src/main/java/software/amazon/memorydb/acl/UpdateHandler.java
52 6 4
private void handleTagging()
in aws-memorydb-user/src/main/java/software/amazon/memorydb/user/UpdateHandler.java
29 5 4
protected T handleExceptions()
in aws-memorydb-acl/src/main/java/software/amazon/memorydb/acl/BaseHandlerStd.java
13 5 1
private void handleTagging()
in aws-memorydb-acl/src/main/java/software/amazon/memorydb/acl/UpdateHandler.java
29 5 4
static boolean isModified()
in aws-memorydb-cluster/src/main/java/software/amazon/memorydb/cluster/Translator.java
7 4 2
protected abstract ProgressEvent handleRequest()
in aws-memorydb-user/src/main/java/software/amazon/memorydb/user/BaseHandlerStd.java
29 4 5
protected T handleExceptions()
in aws-memorydb-user/src/main/java/software/amazon/memorydb/user/BaseHandlerStd.java
11 4 1
protected abstract ProgressEvent handleRequest()
in aws-memorydb-acl/src/main/java/software/amazon/memorydb/acl/BaseHandlerStd.java
29 4 5
protected ProgressEvent handleRequest()
in aws-memorydb-cluster/src/main/java/software/amazon/memorydb/cluster/CreateHandler.java
21 3 5
private Boolean isDeleted()
in aws-memorydb-cluster/src/main/java/software/amazon/memorydb/cluster/DeleteHandler.java
11 3 2
public final ProgressEvent handleRequest()
in aws-memorydb-cluster/src/main/java/software/amazon/memorydb/cluster/BaseHandlerStd.java
13 3 4