aws-cloudformation / aws-cloudformation-resource-providers-iotfleethub
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 20 units with 364 lines of code in units (60.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (104 lines of code)
    • 4 simple units (140 lines of code)
    • 14 very simple units (120 lines of code)
0% | 0% | 28% | 38% | 32%
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% | 28% | 38% | 32%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
aws-iotfleethub-application/src/main/java/software/amazon/iotfleethub/application0% | 0% | 28% | 38% | 32%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public ProgressEvent handleRequest()
in aws-iotfleethub-application/src/main/java/software/amazon/iotfleethub/application/UpdateHandler.java
58 14 4
void updateTags()
in aws-iotfleethub-application/src/main/java/software/amazon/iotfleethub/application/UpdateHandler.java
46 11 5
public ProgressEvent handleRequest()
in aws-iotfleethub-application/src/main/java/software/amazon/iotfleethub/application/CreateHandler.java
33 9 4
static HandlerErrorCode translateExceptionToErrorCode()
in aws-iotfleethub-application/src/main/java/software/amazon/iotfleethub/application/Translator.java
21 7 2
public ProgressEvent handleRequest()
in aws-iotfleethub-application/src/main/java/software/amazon/iotfleethub/application/DeleteHandler.java
35 6 4
public ProgressEvent handleRequest()
in aws-iotfleethub-application/src/main/java/software/amazon/iotfleethub/application/ReadHandler.java
51 6 4
static CreateApplicationRequest translateToCreateRequest()
in aws-iotfleethub-application/src/main/java/software/amazon/iotfleethub/application/Translator.java
21 4 3
public ProgressEvent handleRequest()
in aws-iotfleethub-application/src/main/java/software/amazon/iotfleethub/application/ListHandler.java
32 2 4
static boolean isReadOnlyFieldSet()
in aws-iotfleethub-application/src/main/java/software/amazon/iotfleethub/application/Translator.java
10 2 3
static boolean isReadOnlyFieldChanged()
in aws-iotfleethub-application/src/main/java/software/amazon/iotfleethub/application/Translator.java
11 2 4
public CreateHandler()
in aws-iotfleethub-application/src/main/java/software/amazon/iotfleethub/application/CreateHandler.java
3 1 0
public ListHandler()
in aws-iotfleethub-application/src/main/java/software/amazon/iotfleethub/application/ListHandler.java
3 1 0
public DeleteHandler()
in aws-iotfleethub-application/src/main/java/software/amazon/iotfleethub/application/DeleteHandler.java
3 1 0
static DeleteApplicationRequest translateToDeleteRequest()
in aws-iotfleethub-application/src/main/java/software/amazon/iotfleethub/application/Translator.java
8 1 2
static ListApplicationsRequest translateToListRequest()
in aws-iotfleethub-application/src/main/java/software/amazon/iotfleethub/application/Translator.java
5 1 1
static DescribeApplicationRequest translateToDescribeRequest()
in aws-iotfleethub-application/src/main/java/software/amazon/iotfleethub/application/Translator.java
5 1 1
static UpdateApplicationRequest translateToUpdateRequest()
in aws-iotfleethub-application/src/main/java/software/amazon/iotfleethub/application/Translator.java
10 1 2
public ReadHandler()
in aws-iotfleethub-application/src/main/java/software/amazon/iotfleethub/application/ReadHandler.java
3 1 0
public UpdateHandler()
in aws-iotfleethub-application/src/main/java/software/amazon/iotfleethub/application/UpdateHandler.java
3 1 0
public Configuration()
in aws-iotfleethub-application/src/main/java/software/amazon/iotfleethub/application/Configuration.java
3 1 0