aws-cloudformation / aws-cloudformation-resource-providers-transitgateway
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 667 units with 5,601 lines of code in units (62.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (138 lines of code)
    • 13 simple units (290 lines of code)
    • 650 very simple units (5,173 lines of code)
0% | 0% | 2% | 5% | 92%
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% | 2% | 5% | 92%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
aws-ec2-transitgateway0% | 0% | 14% | 2% | 83%
aws-ec2-transitgatewayvpcattachment0% | 0% | 3% | 3% | 93%
aws-ec2-transitgatewaymulticastdomain0% | 0% | 0% | 6% | 93%
aws-ec2-transitgatewayconnect0% | 0% | 0% | 7% | 92%
aws-ec2-transitgatewayroutetablepropagation0% | 0% | 0% | 7% | 92%
aws-ec2-transitgatewaypeeringattachment0% | 0% | 0% | 4% | 95%
aws-ec2-transitgatewaymulticastdomainassociation0% | 0% | 0% | 5% | 94%
aws-ec2-transitgatewaymulticastgroupsource0% | 0% | 0% | 5% | 94%
aws-ec2-transitgatewaymulticastgroupmember0% | 0% | 0% | 5% | 94%
aws-ec2-transitgatewayattachment0% | 0% | 0% | 5% | 94%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private ModifyTransitGatewayOptions getTransitGatewayModifyOptions()
in aws-ec2-transitgateway/src/main/java/com/aws/ec2/transitgateway/workflow/update/Update.java
51 13 1
public static List mergeResourceModelAndStackTags()
in aws-ec2-transitgateway/src/main/java/com/aws/ec2/transitgateway/workflow/TagUtils.java
28 11 2
public static HandlerErrorCode mapToHandlerErrorCode()
in aws-ec2-transitgateway/src/main/java/com/aws/ec2/transitgateway/workflow/ExceptionMapper.java
31 11 1
public static List mergeResourceModelAndStackTags()
in aws-ec2-transitgatewayvpcattachment/src/main/java/com/aws/ec2/transitgatewayvpcattachment/workflow/TagUtils.java
28 11 2
public static HandlerErrorCode mapToHandlerErrorCode()
in aws-ec2-transitgatewayvpcattachment/src/main/java/com/aws/ec2/transitgatewayvpcattachment/workflow/ExceptionMapper.java
25 9 1
public static HandlerErrorCode mapToHandlerErrorCode()
in aws-ec2-transitgatewaymulticastdomain/src/main/java/software/amazon/ec2/transitgatewaymulticastdomain/workflow/ExceptionMapper.java
25 8 1
public static HandlerErrorCode mapToHandlerErrorCode()
in aws-ec2-transitgatewaymulticastgroupmember/src/main/java/software/amazon/ec2/transitgatewaymulticastgroupmember/workflow/ExceptionMapper.java
25 8 1
public static HandlerErrorCode mapToHandlerErrorCode()
in aws-ec2-transitgatewayroutetablepropagation/src/main/java/software/amazon/ec2/transitgatewayroutetablepropagation/workflow/ExceptionMapper.java
25 8 1
public static HandlerErrorCode mapToHandlerErrorCode()
in aws-ec2-transitgatewaymulticastdomainassociation/src/main/java/software/amazon/ec2/transitgatewaymulticastdomainassociation/workflow/ExceptionMapper.java
25 8 1
public static HandlerErrorCode mapToHandlerErrorCode()
in aws-ec2-transitgatewaypeeringattachment/src/main/java/software/amazon/ec2/transitgatewaypeeringattachment/workflow/ExceptionMapper.java
25 8 1
public static HandlerErrorCode mapToHandlerErrorCode()
in aws-ec2-transitgatewaymulticastgroupsource/src/main/java/software/amazon/ec2/transitgatewaymulticastgroupsource/workflow/ExceptionMapper.java
25 8 1
public static HandlerErrorCode mapToHandlerErrorCode()
in aws-ec2-transitgatewayattachment/src/main/java/com/aws/ec2/transitgatewayattachment/workflow/ExceptionMapper.java
25 8 1
public static HandlerErrorCode mapToHandlerErrorCode()
in aws-ec2-transitgatewayconnect/src/main/java/software/amazon/ec2/transitgatewayconnect/workflow/ExceptionMapper.java
25 8 1
public static List mergeResourceModelAndStackTags()
in aws-ec2-transitgatewayconnect/src/main/java/software/amazon/ec2/transitgatewayconnect/workflow/TagUtils.java
18 7 2
public static List mergeResourceModelAndStackTags()
in aws-ec2-transitgatewaymulticastdomain/src/main/java/software/amazon/ec2/transitgatewaymulticastdomain/workflow/TagUtils.java
18 6 2
protected ProgressEvent validate()
in aws-ec2-transitgatewayroutetablepropagation/src/main/java/software/amazon/ec2/transitgatewayroutetablepropagation/workflow/ValidCurrentStateCheckBase.java
12 6 0
public static ResourceModel setDefaults()
in aws-ec2-transitgateway/src/main/java/com/aws/ec2/transitgateway/workflow/create/ModelAdapter.java
17 6 1
private CreateTransitGatewayMulticastDomainRequestOptions translateModelToOptions()
in aws-ec2-transitgatewaymulticastdomain/src/main/java/software/amazon/ec2/transitgatewaymulticastdomain/workflow/create/Create.java
21 5 1
protected ProgressEvent validate()
in aws-ec2-transitgatewaymulticastdomain/src/main/java/software/amazon/ec2/transitgatewaymulticastdomain/workflow/ValidCurrentStateCheckBase.java
7 5 0
protected ProgressEvent validate()
in aws-ec2-transitgatewaymulticastgroupmember/src/main/java/software/amazon/ec2/transitgatewaymulticastgroupmember/workflow/create/CreatePrecheck.java
18 5 0