aws-cloudformation / aws-cloudformation-resource-providers-events
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 72 units with 796 lines of code in units (62.5% 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 (24 lines of code)
    • 71 very simple units (772 lines of code)
0% | 0% | 0% | 3% | 96%
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% | 3% | 96%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
aws-events-connection/src/main/java/software/amazon/events/connection0% | 0% | 0% | 4% | 95%
aws-events-apidestination/src/main/java/software/amazon/events/apidestination0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public static void verifyAuthorizationTypeParameterMapping()
in aws-events-connection/src/main/java/software/amazon/events/connection/Utils.java
24 7 1
private Boolean isStabilized()
in aws-events-connection/src/main/java/software/amazon/events/connection/CreateHandler.java
20 5 2
private UpdateConnectionResponse updateResource()
in aws-events-connection/src/main/java/software/amazon/events/connection/UpdateHandler.java
15 5 2
private Boolean isStabilized()
in aws-events-connection/src/main/java/software/amazon/events/connection/UpdateHandler.java
20 5 2
private CreateApiDestinationResponse createResource()
in aws-events-apidestination/src/main/java/software/amazon/events/apidestination/CreateHandler.java
16 5 2
private UpdateApiDestinationResponse updateResource()
in aws-events-apidestination/src/main/java/software/amazon/events/apidestination/UpdateHandler.java
16 5 2
private CreateConnectionResponse createResource()
in aws-events-connection/src/main/java/software/amazon/events/connection/CreateHandler.java
13 4 2
private DeleteConnectionResponse deleteResource()
in aws-events-connection/src/main/java/software/amazon/events/connection/DeleteHandler.java
13 4 2
private void verifyNonUpdatableFields()
in aws-events-apidestination/src/main/java/software/amazon/events/apidestination/UpdateHandler.java
10 4 2
private boolean stabilizedOnDelete()
in aws-events-connection/src/main/java/software/amazon/events/connection/DeleteHandler.java
25 3 5
private DescribeConnectionResponse readResource()
in aws-events-connection/src/main/java/software/amazon/events/connection/ReadHandler.java
11 3 2
public static List toModel()
in aws-events-connection/src/main/java/software/amazon/events/connection/ListConverter.java
6 3 2
public static DescribeConnectionResponse readResource()
in aws-events-connection/src/main/java/software/amazon/events/connection/Utils.java
11 3 2
private DeleteApiDestinationResponse deleteResource()
in aws-events-apidestination/src/main/java/software/amazon/events/apidestination/DeleteHandler.java
12 3 2
private DescribeApiDestinationResponse readResource()
in aws-events-apidestination/src/main/java/software/amazon/events/apidestination/ReadHandler.java
12 3 2
protected ProgressEvent handleRequest()
in aws-events-connection/src/main/java/software/amazon/events/connection/CreateHandler.java
31 2 5
public final ProgressEvent handleRequest()
in aws-events-connection/src/main/java/software/amazon/events/connection/BaseHandlerStd.java
13 2 4
private static ConnectionHttpParameters translateToSdkConnectionHttpParameters()
in aws-events-connection/src/main/java/software/amazon/events/connection/Translator.java
14 2 1
public static CreateConnectionBasicAuthRequestParameters translateToSdkCreateBasicAuthRequestParameters()
in aws-events-connection/src/main/java/software/amazon/events/connection/Translator.java
10 2 1
private static CreateConnectionApiKeyAuthRequestParameters translateToSdkCreateApiKeyAuthRequestParameters()
in aws-events-connection/src/main/java/software/amazon/events/connection/Translator.java
10 2 1