aws-cloudformation / aws-cloudformation-resource-providers-synthetics
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 56 units with 849 lines of code in units (72.6% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (140 lines of code)
    • 2 medium complex units (85 lines of code)
    • 3 simple units (122 lines of code)
    • 50 very simple units (502 lines of code)
0% | 16% | 10% | 14% | 59%
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% | 16% | 10% | 14% | 59%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
aws-synthetics-canary/src/main/java/com/amazon/synthetics/canary0% | 16% | 10% | 14% | 59%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private ProgressEvent updateCanary()
in aws-synthetics-canary/src/main/java/com/amazon/synthetics/canary/UpdateHandler.java
140 29 1
public static boolean visualReferenceNeedsUpdate()
in aws-synthetics-canary/src/main/java/com/amazon/synthetics/canary/ModelHelper.java
29 14 2
public ProgressEvent handleRequest()
in aws-synthetics-canary/src/main/java/com/amazon/synthetics/canary/UpdateHandler.java
56 13 0
private ProgressEvent createCanary()
in aws-synthetics-canary/src/main/java/com/amazon/synthetics/canary/CreateHandler.java
66 9 0
protected ProgressEvent handleRequest()
in aws-synthetics-canary/src/main/java/com/amazon/synthetics/canary/DeleteHandler.java
28 7 0
protected ProgressEvent handleRequest()
in aws-synthetics-canary/src/main/java/com/amazon/synthetics/canary/CreateHandler.java
28 6 0
public static SdkBytes compressRawScript()
in aws-synthetics-canary/src/main/java/com/amazon/synthetics/canary/ModelHelper.java
37 5 1
public static boolean isNullOrEmpty()
in aws-synthetics-canary/src/main/java/com/amazon/synthetics/canary/ModelHelper.java
7 5 1
public static boolean isNullOrEmpty()
in aws-synthetics-canary/src/main/java/com/amazon/synthetics/canary/CanaryHelper.java
8 4 1
public static ResourceModel constructModel()
in aws-synthetics-canary/src/main/java/com/amazon/synthetics/canary/ModelHelper.java
25 4 2
public static VisualReferenceInput getVisualReferenceInput()
in aws-synthetics-canary/src/main/java/com/amazon/synthetics/canary/ModelHelper.java
21 4 1
private ProgressEvent handleCanaryInStateRunning()
in aws-synthetics-canary/src/main/java/com/amazon/synthetics/canary/UpdateHandler.java
22 4 1
public void throwIfRetryLimitExceeded()
in aws-synthetics-canary/src/main/java/com/amazon/synthetics/canary/CallbackContext.java
10 3 3
public static boolean isNullOrEmpty()
in aws-synthetics-canary/src/main/java/com/amazon/synthetics/canary/CanaryHelper.java
7 3 1
private List listAllCanaries()
in aws-synthetics-canary/src/main/java/com/amazon/synthetics/canary/ListHandler.java
23 3 0
private ProgressEvent deleteCanary()
in aws-synthetics-canary/src/main/java/com/amazon/synthetics/canary/DeleteHandler.java
21 3 1
public static Map buildTagInputMap()
in aws-synthetics-canary/src/main/java/com/amazon/synthetics/canary/ModelHelper.java
9 3 1
public static ArtifactConfigInput getArtifactConfigInput()
in aws-synthetics-canary/src/main/java/com/amazon/synthetics/canary/ModelHelper.java
12 3 1
private ProgressEvent handleCanaryInStateReadyOrStopped()
in aws-synthetics-canary/src/main/java/com/amazon/synthetics/canary/UpdateHandler.java
21 3 1
public final ProgressEvent handleRequest()
in aws-synthetics-canary/src/main/java/com/amazon/synthetics/canary/CanaryActionHandler.java
21 3 4