aws-cloudformation / aws-cloudformation-resource-providers-rds
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 402 units with 4,785 lines of code in units (67.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (16 lines of code)
    • 8 simple units (320 lines of code)
    • 393 very simple units (4,449 lines of code)
0% | 0% | <1% | 6% | 92%
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% | 6% | 92%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
aws-rds-dbinstance/src0% | 0% | 1% | 14% | 84%
aws-rds-dbclusterparametergroup/src0% | 0% | 0% | 26% | 73%
aws-rds-cfn-common/src0% | 0% | 0% | 8% | 91%
aws-rds-dbcluster/src0% | 0% | 0% | 1% | 98%
aws-rds-optiongroup/src0% | 0% | 0% | 2% | 97%
aws-rds-dbparametergroup/src0% | 0% | 0% | 0% | 100%
aws-rds-eventsubscription/src0% | 0% | 0% | 0% | 100%
aws-rds-globalcluster/src0% | 0% | 0% | 0% | 100%
aws-rds-dbsubnetgroup/src0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private boolean shouldUpdateAfterCreate()
in aws-rds-dbinstance/src/main/java/software/amazon/rds/dbinstance/CreateHandler.java
16 14 1
protected ProgressEvent handleRequest()
in aws-rds-dbclusterparametergroup/src/main/java/software/amazon/rds/dbclusterparametergroup/UpdateHandler.java
53 9 5
protected ProgressEvent handleRequest()
in aws-rds-dbinstance/src/main/java/software/amazon/rds/dbinstance/CreateHandler.java
55 8 6
public static ResourceModel setDefaults()
in aws-rds-dbcluster/src/main/java/software/amazon/rds/dbcluster/ModelAdapter.java
16 7 1
public static ModifyDbInstanceRequest modifyDbInstanceRequest()
in aws-rds-dbinstance/src/main/java/software/amazon/rds/dbinstance/Translator.java
67 7 3
public ErrorStatus handle()
in aws-rds-cfn-common/src/main/java/software/amazon/rds/common/error/PlainErrorRuleSet.java
17 6 1
public int compareTo()
in aws-rds-optiongroup/src/main/java/software/amazon/rds/optiongroup/OptionVersion.java
14 6 1
protected ProgressEvent handleRequest()
in aws-rds-dbinstance/src/main/java/software/amazon/rds/dbinstance/UpdateHandler.java
68 6 6
protected abstract ProgressEvent handleRequest()
in aws-rds-dbclusterparametergroup/src/main/java/software/amazon/rds/dbclusterparametergroup/BaseHandlerStd.java
30 6 5
protected ProgressEvent handleRequest()
in aws-rds-dbcluster/src/main/java/software/amazon/rds/dbcluster/CreateHandler.java
46 5 5
protected ProgressEvent handleRequest()
in aws-rds-dbcluster/src/main/java/software/amazon/rds/dbcluster/DeleteHandler.java
37 5 5
protected boolean isAssociatedRolesEqual()
in aws-rds-dbcluster/src/main/java/software/amazon/rds/dbcluster/BaseHandlerStd.java
10 5 2
protected static Collection getOptionsToInclude()
in aws-rds-optiongroup/src/main/java/software/amazon/rds/optiongroup/UpdateHandler.java
31 5 2
protected abstract ProgressEvent handleRequest()
in aws-rds-globalcluster/src/main/java/software/amazon/rds/globalcluster/BaseHandlerStd.java
22 5 5
protected ProgressEvent tagResource()
in aws-rds-dbcluster/src/main/java/software/amazon/rds/dbcluster/BaseHandlerStd.java
30 4 5
public static ErrorCode fromString()
in aws-rds-cfn-common/src/main/java/software/amazon/rds/common/error/ErrorCode.java
10 4 1
protected boolean withProbing()
in aws-rds-dbinstance/src/main/java/software/amazon/rds/dbinstance/BaseHandlerStd.java
21 4 4
protected ProgressEvent ensureEngineSet()
in aws-rds-dbinstance/src/main/java/software/amazon/rds/dbinstance/BaseHandlerStd.java
17 4 2
private static boolean canUpdateAllocatedStorage()
in aws-rds-dbinstance/src/main/java/software/amazon/rds/dbinstance/Translator.java
13 4 2
private static boolean shouldSetProcessorFeatures()
in aws-rds-dbinstance/src/main/java/software/amazon/rds/dbinstance/Translator.java
5 4 2