aws-cloudformation / cloudformation-resource-schema
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 44 units with 356 lines of code in units (68.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (107 lines of code)
    • 1 simple units (14 lines of code)
    • 42 very simple units (235 lines of code)
0% | 0% | 30% | 3% | 66%
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% | 30% | 3% | 66%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
software/amazon/cloudformation/resource0% | 0% | 39% | 0% | 60%
software/amazon/cloudformation/resource/exceptions0% | 0% | 0% | 20% | 79%
org/everit/json/schema0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public ResourceTypeSchema()
in src/main/java/software/amazon/cloudformation/resource/ResourceTypeSchema.java
107 14 1
private static String buildFullExceptionMessageHelper()
in src/main/java/software/amazon/cloudformation/resource/exceptions/ValidationException.java
14 7 1
public void validateTaggingMetadata()
in src/main/java/software/amazon/cloudformation/resource/ResourceTagging.java
11 5 2
public static ValidationException newScrubbedException()
in src/main/java/software/amazon/cloudformation/resource/exceptions/ValidationException.java
11 5 1
public static void removeProperty()
in src/main/java/software/amazon/cloudformation/resource/ResourceTypeSchema.java
16 4 2
void registerMetaSchema()
in src/main/java/software/amazon/cloudformation/resource/BaseValidator.java
15 4 2
public Schema loadResourceDefinitionSchema()
in src/main/java/software/amazon/cloudformation/resource/Validator.java
16 3 1
private ValidationException()
in src/main/java/software/amazon/cloudformation/resource/exceptions/ValidationException.java
13 3 2
public boolean isInObject()
in src/main/java/org/everit/json/schema/PublicJSONPointer.java
7 2 1
public Set getHandlerPermissions()
in src/main/java/software/amazon/cloudformation/resource/ResourceTypeSchema.java
3 2 1
public Integer getHandlerTimeoutInMinutes()
in src/main/java/software/amazon/cloudformation/resource/ResourceTypeSchema.java
3 2 1
public boolean definesProperty()
in src/main/java/software/amazon/cloudformation/resource/ResourceTypeSchema.java
8 2 1
public void validateObject()
in src/main/java/software/amazon/cloudformation/resource/BaseValidator.java
9 2 2
public ValidationException()
in src/main/java/software/amazon/cloudformation/resource/exceptions/ValidationException.java
10 2 4
public PublicJSONPointer()
in src/main/java/org/everit/json/schema/PublicJSONPointer.java
3 1 1
public PublicJSONPointer()
in src/main/java/org/everit/json/schema/PublicJSONPointer.java
3 1 1
public List getRefTokens()
in src/main/java/org/everit/json/schema/PublicJSONPointer.java
3 1 0
public static ResourceTypeSchema load()
in src/main/java/software/amazon/cloudformation/resource/ResourceTypeSchema.java
4 1 1
public String getDescription()
in src/main/java/software/amazon/cloudformation/resource/ResourceTypeSchema.java
3 1 0
public List getConditionalCreateOnlyPropertiesAsStrings()
in src/main/java/software/amazon/cloudformation/resource/ResourceTypeSchema.java
3 1 0