aws-cloudformation / aws-cloudformation-resource-providers-timestream
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 86 units with 1,382 lines of code in units (58.8% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (140 lines of code)
    • 14 simple units (503 lines of code)
    • 70 very simple units (739 lines of code)
0% | 0% | 10% | 36% | 53%
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% | 10% | 36% | 53%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
aws-timestream-scheduledquery/src/main/java/software/amazon/timestream/scheduledquery0% | 0% | 13% | 29% | 57%
aws-timestream-database/src/main/java/software/amazon/timestream/database0% | 0% | 17% | 33% | 49%
aws-timestream-table/src/main/java/software/amazon/timestream/table0% | 0% | 0% | 49% | 50%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public ProgressEvent handleRequest()
in aws-timestream-scheduledquery/src/main/java/software/amazon/timestream/scheduledquery/CreateHandler.java
82 15 4
public ProgressEvent handleRequest()
in aws-timestream-database/src/main/java/software/amazon/timestream/database/UpdateHandler.java
58 13 4
public ProgressEvent handleRequest()
in aws-timestream-table/src/main/java/software/amazon/timestream/table/CreateHandler.java
56 10 4
public ProgressEvent handleRequest()
in aws-timestream-database/src/main/java/software/amazon/timestream/database/CreateHandler.java
50 9 4
public ProgressEvent handleRequest()
in aws-timestream-database/src/main/java/software/amazon/timestream/database/ReadHandler.java
35 8 4
public ProgressEvent handleRequest()
in aws-timestream-table/src/main/java/software/amazon/timestream/table/ReadHandler.java
37 8 4
public ProgressEvent handleRequest()
in aws-timestream-database/src/main/java/software/amazon/timestream/database/DeleteHandler.java
29 7 4
public ProgressEvent handleRequest()
in aws-timestream-scheduledquery/src/main/java/software/amazon/timestream/scheduledquery/ReadHandler.java
41 7 4
public static MixedMeasureMapping convertToModelMixedMeasureMapping()
in aws-timestream-scheduledquery/src/main/java/software/amazon/timestream/scheduledquery/ScheduledQueryModelConverter.java
29 7 1
public ProgressEvent handleRequest()
in aws-timestream-table/src/main/java/software/amazon/timestream/table/UpdateHandler.java
53 7 4
private void initiateDeleteScheduledQuery()
in aws-timestream-scheduledquery/src/main/java/software/amazon/timestream/scheduledquery/DeleteHandler.java
20 6 3
private ProgressEvent checkDeleteScheduledQueryStatus()
in aws-timestream-scheduledquery/src/main/java/software/amazon/timestream/scheduledquery/DeleteHandler.java
27 6 3
public ProgressEvent handleRequest()
in aws-timestream-scheduledquery/src/main/java/software/amazon/timestream/scheduledquery/UpdateHandler.java
32 6 4
public static TargetConfiguration convertToModelTargetConfiguration()
in aws-timestream-scheduledquery/src/main/java/software/amazon/timestream/scheduledquery/ScheduledQueryModelConverter.java
30 6 1
public ProgressEvent handleRequest()
in aws-timestream-table/src/main/java/software/amazon/timestream/table/ListHandler.java
43 6 4
private void initiateDeleteTable()
in aws-timestream-table/src/main/java/software/amazon/timestream/table/DeleteHandler.java
21 6 3
public ProgressEvent handleRequest()
in aws-timestream-database/src/main/java/software/amazon/timestream/database/ListHandler.java
34 5 4
public ProgressEvent handleRequest()
in aws-timestream-scheduledquery/src/main/java/software/amazon/timestream/scheduledquery/ListHandler.java
36 5 4
public ProgressEvent handleRequest()
in aws-timestream-table/src/main/java/software/amazon/timestream/table/DeleteHandler.java
25 5 4
static AmazonTimestreamWrite get()
in aws-timestream-database/src/main/java/software/amazon/timestream/database/TimestreamClientFactory.java
23 4 2