aws-cloudformation / aws-cloudformation-resource-providers-customer-profiles
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 69 units with 1,199 lines of code in units (61.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (305 lines of code)
    • 12 simple units (488 lines of code)
    • 53 very simple units (406 lines of code)
0% | 0% | 25% | 40% | 33%
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% | 25% | 40% | 33%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
aws-customerprofiles-integration/src/main/java/software/amazon/customerprofiles/integration0% | 0% | 38% | 32% | 28%
aws-customerprofiles-objecttype/src/main/java/software/amazon/customerprofiles/objecttype0% | 0% | 24% | 52% | 22%
aws-customerprofiles-domain/src/main/java/software/amazon/customerprofiles/domain0% | 0% | 28% | 57% | 13%
aws-customerprofiles-integration/src/main/java/software/amazon/customerprofiles/integration/translators0% | 0% | 0% | 8% | 91%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public ProgressEvent handleRequest()
in aws-customerprofiles-objecttype/src/main/java/software/amazon/customerprofiles/objecttype/UpdateHandler.java
90 15 4
public ProgressEvent handleRequest()
in aws-customerprofiles-domain/src/main/java/software/amazon/customerprofiles/domain/UpdateHandler.java
79 15 4
public ProgressEvent handleRequest()
in aws-customerprofiles-integration/src/main/java/software/amazon/customerprofiles/integration/UpdateHandler.java
80 15 4
private ProgressEvent createIntegration()
in aws-customerprofiles-integration/src/main/java/software/amazon/customerprofiles/integration/CreateHandler.java
56 13 3
public ProgressEvent handleRequest()
in aws-customerprofiles-objecttype/src/main/java/software/amazon/customerprofiles/objecttype/CreateHandler.java
76 9 4
public ProgressEvent handleRequest()
in aws-customerprofiles-domain/src/main/java/software/amazon/customerprofiles/domain/CreateHandler.java
52 9 4
public ProgressEvent handleRequest()
in aws-customerprofiles-objecttype/src/main/java/software/amazon/customerprofiles/objecttype/ListHandler.java
45 6 4
public ProgressEvent handleRequest()
in aws-customerprofiles-objecttype/src/main/java/software/amazon/customerprofiles/objecttype/DeleteHandler.java
33 6 4
public ProgressEvent handleRequest()
in aws-customerprofiles-objecttype/src/main/java/software/amazon/customerprofiles/objecttype/ReadHandler.java
43 6 4
public ProgressEvent handleRequest()
in aws-customerprofiles-domain/src/main/java/software/amazon/customerprofiles/domain/ListHandler.java
39 6 4
public ProgressEvent handleRequest()
in aws-customerprofiles-domain/src/main/java/software/amazon/customerprofiles/domain/DeleteHandler.java
32 6 4
public ProgressEvent handleRequest()
in aws-customerprofiles-domain/src/main/java/software/amazon/customerprofiles/domain/ReadHandler.java
36 6 4
public ProgressEvent handleRequest()
in aws-customerprofiles-integration/src/main/java/software/amazon/customerprofiles/integration/ListHandler.java
44 6 4
public ProgressEvent handleRequest()
in aws-customerprofiles-integration/src/main/java/software/amazon/customerprofiles/integration/DeleteHandler.java
33 6 4
public ProgressEvent handleRequest()
in aws-customerprofiles-integration/src/main/java/software/amazon/customerprofiles/integration/ReadHandler.java
38 6 4
private static ScheduledTriggerProperties toServiceScheduledTriggerProperties()
in aws-customerprofiles-integration/src/main/java/software/amazon/customerprofiles/integration/translators/TriggerConfigTranslator.java
17 6 1
static List mapKeysToList()
in aws-customerprofiles-objecttype/src/main/java/software/amazon/customerprofiles/objecttype/Translator.java
21 4 1
public ProgressEvent handleRequest()
in aws-customerprofiles-integration/src/main/java/software/amazon/customerprofiles/integration/CreateHandler.java
30 4 4
static Map listFieldsToMap()
in aws-customerprofiles-objecttype/src/main/java/software/amazon/customerprofiles/objecttype/Translator.java
12 3 1
static List mapTagsToList()
in aws-customerprofiles-integration/src/main/java/software/amazon/customerprofiles/integration/Translator.java
10 3 1