aws-cloudformation / aws-cloudformation-resource-providers-batch
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 30 units with 363 lines of code in units (61.3% 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)
    • 1 simple units (38 lines of code)
    • 29 very simple units (325 lines of code)
0% | 0% | 0% | 10% | 89%
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% | 10% | 89%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy0% | 0% | 0% | 10% | 89%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public ProgressEvent handleRequest()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/CreateHandler.java
38 8 4
private List listSchedulingPolicies()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/ListHandler.java
32 4 4
public ProgressEvent handleRequest()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/DeleteHandler.java
33 4 4
static FairsharePolicy toRequestFairSharePolicy()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/Translator.java
11 4 1
public ProgressEvent handleRequest()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/ReadHandler.java
30 4 4
static void handleBatchExceptions()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/Exceptions.java
12 4 3
static List toShareDistribution()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/Translator.java
11 3 1
public ProgressEvent handleRequest()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/UpdateHandler.java
24 3 4
static void handleTagging()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/TagUtils.java
25 3 6
public ProgressEvent handleRequest()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/ListHandler.java
15 2 4
static ResourceModel toModelSchedulingPolicy()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/Translator.java
10 2 1
static CreateSchedulingPolicyRequest toCreateSchedulingPolicyRequest()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/Translator.java
10 2 3
static UpdateSchedulingPolicyRequest toUpdateSchedulingPolicyRequest()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/Translator.java
8 2 1
static Map getTagsToDelete()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/TagUtils.java
8 2 2
static Map getTagsToCreate()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/TagUtils.java
8 2 2
static void handleInvalidInputException()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/Exceptions.java
8 2 3
public CreateHandler()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/CreateHandler.java
3 1 1
private String generateParameterName()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/CreateHandler.java
15 1 2
public ListHandler()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/ListHandler.java
3 1 1
public DeleteHandler()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/DeleteHandler.java
3 1 1