aws-cloudformation / aws-cloudformation-resource-providers-devops-guru
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 42 units with 597 lines of code in units (59.2% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 7 simple units (195 lines of code)
    • 35 very simple units (402 lines of code)
0% | 0% | 0% | 32% | 67%
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% | 0% | 32% | 67%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
aws-devopsguru-resourcecollection/src/main/java/software/amazon/devopsguru/resourcecollection0% | 0% | 0% | 35% | 64%
aws-devopsguru-notificationchannel/src/main/java/software/amazon/devopsguru/notificationchannel0% | 0% | 0% | 28% | 71%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private AddNotificationChannelResponse createResource()
in aws-devopsguru-notificationchannel/src/main/java/software/amazon/devopsguru/notificationchannel/CreateHandler.java
27 8 4
protected UpdateResourceCollectionResponse updateResourceCollection()
in aws-devopsguru-resourcecollection/src/main/java/software/amazon/devopsguru/resourcecollection/BaseHandlerStd.java
42 8 5
private RemoveNotificationChannelResponse deleteResource()
in aws-devopsguru-notificationchannel/src/main/java/software/amazon/devopsguru/notificationchannel/DeleteHandler.java
22 6 3
protected abstract ProgressEvent handleRequest()
in aws-devopsguru-notificationchannel/src/main/java/software/amazon/devopsguru/notificationchannel/BaseHandlerStd.java
25 6 5
protected abstract ProgressEvent handleRequest()
in aws-devopsguru-resourcecollection/src/main/java/software/amazon/devopsguru/resourcecollection/BaseHandlerStd.java
28 6 5
protected UpdateResourceCollectionResponse updateResourceCollectionByBatch()
in aws-devopsguru-resourcecollection/src/main/java/software/amazon/devopsguru/resourcecollection/BaseHandlerStd.java
31 6 4
static UpdateResourceCollectionRequest translateToAddResourceCollectionRequest()
in aws-devopsguru-resourcecollection/src/main/java/software/amazon/devopsguru/resourcecollection/Translator.java
20 6 1
private UpdateResourceCollectionResponse deleteResource()
in aws-devopsguru-resourcecollection/src/main/java/software/amazon/devopsguru/resourcecollection/DeleteHandler.java
26 5 4
private ProgressEvent constructResourceModelFromResponse()
in aws-devopsguru-notificationchannel/src/main/java/software/amazon/devopsguru/notificationchannel/ReadHandler.java
10 4 2
private ProgressEvent checkForPreCreateResourceExistence()
in aws-devopsguru-notificationchannel/src/main/java/software/amazon/devopsguru/notificationchannel/CreateHandler.java
15 3 3
private ProgressEvent checkForPreDeleteResourceExistence()
in aws-devopsguru-notificationchannel/src/main/java/software/amazon/devopsguru/notificationchannel/DeleteHandler.java
14 3 3
protected List getAllResourceCollection()
in aws-devopsguru-resourcecollection/src/main/java/software/amazon/devopsguru/resourcecollection/BaseHandlerStd.java
22 3 4
static GetResourceCollectionRequest translateToGetResourceCollectionRequest()
in aws-devopsguru-resourcecollection/src/main/java/software/amazon/devopsguru/resourcecollection/Translator.java
9 3 1
private ProgressEvent constructResourceModelFromResponse()
in aws-devopsguru-notificationchannel/src/main/java/software/amazon/devopsguru/notificationchannel/ListHandler.java
18 2 1
public final ProgressEvent handleRequest()
in aws-devopsguru-notificationchannel/src/main/java/software/amazon/devopsguru/notificationchannel/BaseHandlerStd.java
13 2 4
static AddNotificationChannelRequest translateToAddNotificationChannelRequest()
in aws-devopsguru-notificationchannel/src/main/java/software/amazon/devopsguru/notificationchannel/Translator.java
8 2 1
public final ProgressEvent handleRequest()
in aws-devopsguru-resourcecollection/src/main/java/software/amazon/devopsguru/resourcecollection/BaseHandlerStd.java
13 2 4
protected void checkIsEmptyResourceCollection()
in aws-devopsguru-resourcecollection/src/main/java/software/amazon/devopsguru/resourcecollection/BaseHandlerStd.java
11 2 4
static ResourceModel translateFromReadResponse()
in aws-devopsguru-resourcecollection/src/main/java/software/amazon/devopsguru/resourcecollection/Translator.java
14 2 1
protected ProgressEvent handleRequest()
in aws-devopsguru-notificationchannel/src/main/java/software/amazon/devopsguru/notificationchannel/CreateHandler.java
17 1 5