aws-cloudformation / aws-cloudformation-resource-providers-logs
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 115 units with 1,389 lines of code in units (57.4% 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)
    • 8 simple units (217 lines of code)
    • 107 very simple units (1,172 lines of code)
0% | 0% | 0% | 15% | 84%
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% | 15% | 84%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
aws-logs-loggroup/src0% | 0% | 0% | 24% | 75%
aws-logs-metricfilter/src0% | 0% | 0% | 22% | 77%
aws-logs-resourcepolicy/src0% | 0% | 0% | 16% | 83%
aws-logs-destination/src0% | 0% | 0% | 4% | 95%
aws-logs-querydefinition/src0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public ProgressEvent handleRequest()
in aws-logs-loggroup/src/main/java/software/amazon/logs/loggroup/ReadHandler.java
42 9 4
public ProgressEvent handleRequest()
in aws-logs-loggroup/src/main/java/software/amazon/logs/loggroup/UpdateHandler.java
27 8 4
private PutMetricFilterResponse updateResource()
in aws-logs-metricfilter/src/main/java/software/amazon/logs/metricfilter/UpdateHandler.java
25 7 3
private void updateTags()
in aws-logs-loggroup/src/main/java/software/amazon/logs/loggroup/UpdateHandler.java
43 7 5
public ProgressEvent handleRequest()
in aws-logs-resourcepolicy/src/main/java/software/amazon/logs/resourcepolicy/UpdateHandler.java
28 6 4
static void translateException()
in aws-logs-destination/src/main/java/software/amazon/logs/destination/Translator.java
13 6 1
private PutMetricFilterResponse createResource()
in aws-logs-metricfilter/src/main/java/software/amazon/logs/metricfilter/CreateHandler.java
21 6 3
public static BaseHandlerException translateException()
in aws-logs-metricfilter/src/main/java/software/amazon/logs/metricfilter/Translator.java
18 6 1
public ProgressEvent handleRequest()
in aws-logs-resourcepolicy/src/main/java/software/amazon/logs/resourcepolicy/ReadHandler.java
30 5 4
public ProgressEvent handleRequest()
in aws-logs-querydefinition/src/main/java/software/amazon/logs/querydefinition/ReadHandler.java
30 5 4
public ProgressEvent handleRequest()
in aws-logs-querydefinition/src/main/java/software/amazon/logs/querydefinition/UpdateHandler.java
24 5 4
protected abstract ProgressEvent handleRequest()
in aws-logs-destination/src/main/java/software/amazon/logs/destination/BaseHandlerStd.java
31 5 5
private DeleteMetricFilterResponse deleteResource()
in aws-logs-metricfilter/src/main/java/software/amazon/logs/metricfilter/DeleteHandler.java
19 5 2
private DescribeMetricFiltersResponse readResource()
in aws-logs-metricfilter/src/main/java/software/amazon/logs/metricfilter/ReadHandler.java
22 5 3
private void disassociateKmsKey()
in aws-logs-loggroup/src/main/java/software/amazon/logs/loggroup/UpdateHandler.java
24 5 3
private void associateKmsKey()
in aws-logs-loggroup/src/main/java/software/amazon/logs/loggroup/UpdateHandler.java
24 5 3
private PutResourcePolicyResponse invokePutResourcePolicyCall()
in aws-logs-resourcepolicy/src/main/java/software/amazon/logs/resourcepolicy/CreateHandler.java
11 4 2
public ProgressEvent handleRequest()
in aws-logs-resourcepolicy/src/main/java/software/amazon/logs/resourcepolicy/ListHandler.java
30 4 4
public ProgressEvent handleRequest()
in aws-logs-resourcepolicy/src/main/java/software/amazon/logs/resourcepolicy/DeleteHandler.java
19 4 4
private PutQueryDefinitionResponse invokePutQueryDefinitionCall()
in aws-logs-querydefinition/src/main/java/software/amazon/logs/querydefinition/CreateHandler.java
11 4 2