aws-cloudformation / aws-cloudformation-resource-providers-transfer
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 17 units with 334 lines of code in units (50.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (50 lines of code)
    • 4 simple units (184 lines of code)
    • 12 very simple units (100 lines of code)
0% | 0% | 14% | 55% | 29%
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% | 14% | 55% | 29%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
aws-transfer-workflow/src/main/java/software/amazon/transfer/workflow0% | 0% | 14% | 55% | 29%
Most Complex Units
Top 17 most complex units
Unit# linesMcCabe index# params
static WorkflowStep toSdk()
in aws-transfer-workflow/src/main/java/software/amazon/transfer/workflow/Converter.java
50 13 1
public ProgressEvent handleRequest()
in aws-transfer-workflow/src/main/java/software/amazon/transfer/workflow/CreateHandler.java
50 10 4
public ProgressEvent handleRequest()
in aws-transfer-workflow/src/main/java/software/amazon/transfer/workflow/ReadHandler.java
53 9 4
public ProgressEvent handleRequest()
in aws-transfer-workflow/src/main/java/software/amazon/transfer/workflow/UpdateHandler.java
52 8 4
public ProgressEvent handleRequest()
in aws-transfer-workflow/src/main/java/software/amazon/transfer/workflow/DeleteHandler.java
29 6 4
public ProgressEvent handleRequest()
in aws-transfer-workflow/src/main/java/software/amazon/transfer/workflow/ListHandler.java
37 5 4
static Tag toSdk()
in aws-transfer-workflow/src/main/java/software/amazon/transfer/workflow/Converter.java
10 2 1
static Set translateTagfromMap()
in aws-transfer-workflow/src/main/java/software/amazon/transfer/workflow/Converter.java
12 2 1
static S3Tag toSdk()
in aws-transfer-workflow/src/main/java/software/amazon/transfer/workflow/Converter.java
10 2 1
public Map resourceDefinedTags()
in aws-transfer-workflow/src/main/java/software/amazon/transfer/workflow/Configuration.java
8 2 1
public CreateHandler()
in aws-transfer-workflow/src/main/java/software/amazon/transfer/workflow/CreateHandler.java
3 1 1
public ListHandler()
in aws-transfer-workflow/src/main/java/software/amazon/transfer/workflow/ListHandler.java
3 1 1
public DeleteHandler()
in aws-transfer-workflow/src/main/java/software/amazon/transfer/workflow/DeleteHandler.java
3 1 1
public ReadHandler()
in aws-transfer-workflow/src/main/java/software/amazon/transfer/workflow/ReadHandler.java
3 1 1
public static TransferClient getClient()
in aws-transfer-workflow/src/main/java/software/amazon/transfer/workflow/ClientBuilder.java
5 1 0
public UpdateHandler()
in aws-transfer-workflow/src/main/java/software/amazon/transfer/workflow/UpdateHandler.java
3 1 1
public Configuration()
in aws-transfer-workflow/src/main/java/software/amazon/transfer/workflow/Configuration.java
3 1 0