aws-cloudformation / aws-cloudformation-resource-providers-iotwireless
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 143 units with 1,838 lines of code in units (51.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (36 lines of code)
    • 8 simple units (147 lines of code)
    • 134 very simple units (1,655 lines of code)
0% | 0% | 1% | 7% | 90%
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% | 7% | 90%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
aws-iotwireless-serviceprofile/src0% | 0% | 15% | 7% | 77%
aws-iotwireless-wirelessdevice/src0% | 0% | 0% | 14% | 85%
aws-iotwireless-wirelessgateway/src0% | 0% | 0% | 5% | 94%
aws-iotwireless-partneraccount/src0% | 0% | 0% | 6% | 93%
aws-iotwireless-destination/src0% | 0% | 0% | 6% | 93%
aws-iotwireless-taskdefinition/src0% | 0% | 0% | 7% | 92%
aws-iotwireless-deviceprofile/src0% | 0% | 0% | 7% | 92%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
protected ProgressEvent handleRequest()
in aws-iotwireless-serviceprofile/src/main/java/software/amazon/iotwireless/serviceprofile/CreateHandler.java
36 22 5
public RuntimeException handleException()
in aws-iotwireless-serviceprofile/src/main/java/software/amazon/iotwireless/serviceprofile/BaseHandlerStd.java
17 7 2
public RuntimeException handleException()
in aws-iotwireless-taskdefinition/src/main/java/software/amazon/iotwireless/taskdefinition/BaseHandlerStd.java
17 7 2
public RuntimeException handleException()
in aws-iotwireless-deviceprofile/src/main/java/software/amazon/iotwireless/deviceprofile/BaseHandlerStd.java
17 7 2
public RuntimeException handleException()
in aws-iotwireless-wirelessgateway/src/main/java/software/amazon/iotwireless/wirelessgateway/BaseHandlerStd.java
17 7 2
public RuntimeException handleException()
in aws-iotwireless-partneraccount/src/main/java/software/amazon/iotwireless/partneraccount/BaseHandlerStd.java
17 7 2
public RuntimeException handleException()
in aws-iotwireless-destination/src/main/java/software/amazon/iotwireless/destination/BaseHandlerStd.java
17 7 2
public RuntimeException handleException()
in aws-iotwireless-wirelessdevice/src/main/java/software/amazon/iotwireless/wirelessdevice/BaseHandlerStd.java
17 7 2
protected ProgressEvent handleRequest()
in aws-iotwireless-wirelessdevice/src/main/java/software/amazon/iotwireless/wirelessdevice/UpdateHandler.java
28 6 5
protected ProgressEvent handleRequest()
in aws-iotwireless-wirelessgateway/src/main/java/software/amazon/iotwireless/wirelessgateway/UpdateHandler.java
28 5 5
protected ProgressEvent handleRequest()
in aws-iotwireless-partneraccount/src/main/java/software/amazon/iotwireless/partneraccount/CreateHandler.java
34 5 5
protected abstract ProgressEvent handleRequest()
in aws-iotwireless-partneraccount/src/main/java/software/amazon/iotwireless/partneraccount/BaseHandlerStd.java
24 5 5
protected ProgressEvent handleRequest()
in aws-iotwireless-wirelessdevice/src/main/java/software/amazon/iotwireless/wirelessdevice/CreateHandler.java
27 5 5
protected ProgressEvent handleRequest()
in aws-iotwireless-wirelessgateway/src/main/java/software/amazon/iotwireless/wirelessgateway/CreateHandler.java
23 4 5
protected abstract ProgressEvent handleRequest()
in aws-iotwireless-wirelessgateway/src/main/java/software/amazon/iotwireless/wirelessgateway/BaseHandlerStd.java
20 4 5
protected abstract ProgressEvent handleRequest()
in aws-iotwireless-destination/src/main/java/software/amazon/iotwireless/destination/BaseHandlerStd.java
20 4 5
protected abstract ProgressEvent handleRequest()
in aws-iotwireless-wirelessdevice/src/main/java/software/amazon/iotwireless/wirelessdevice/BaseHandlerStd.java
20 4 5
protected abstract ProgressEvent handleRequest()
in aws-iotwireless-serviceprofile/src/main/java/software/amazon/iotwireless/serviceprofile/BaseHandlerStd.java
17 3 5
protected abstract ProgressEvent handleRequest()
in aws-iotwireless-taskdefinition/src/main/java/software/amazon/iotwireless/taskdefinition/BaseHandlerStd.java
17 3 5
protected abstract ProgressEvent handleRequest()
in aws-iotwireless-deviceprofile/src/main/java/software/amazon/iotwireless/deviceprofile/BaseHandlerStd.java
17 3 5