aws-cloudformation / aws-cloudformation-resource-providers-datasync
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 229 units with 3,165 lines of code in units (60.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 11 medium complex units (636 lines of code)
    • 16 simple units (660 lines of code)
    • 202 very simple units (1,869 lines of code)
0% | 0% | 20% | 20% | 59%
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% | 20% | 20% | 59%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
aws-datasync-agent0% | 0% | 36% | 14% | 49%
aws-datasync-locationhdfs0% | 0% | 24% | 17% | 57%
aws-datasync-locationsmb0% | 0% | 17% | 22% | 60%
aws-datasync-locationobjectstorage0% | 0% | 16% | 24% | 59%
aws-datasync-locationfsxwindows0% | 0% | 18% | 25% | 56%
aws-datasync-locationnfs0% | 0% | 16% | 22% | 60%
aws-datasync-locations30% | 0% | 17% | 25% | 56%
aws-datasync-locationefs0% | 0% | 18% | 25% | 56%
aws-datasync-task0% | 0% | 15% | 11% | 72%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public ProgressEvent handleRequest()
in aws-datasync-agent/src/main/java/software/amazon/datasync/agent/UpdateHandler.java
73 16 4
public static void updateTagsForResource()
in aws-datasync-locationsmb/src/main/java/software/amazon/datasync/locationsmb/TagRequestMaker.java
63 15 5
public static void updateTagsForResource()
in aws-datasync-locationobjectstorage/src/main/java/software/amazon/datasync/locationobjectstorage/TagRequestMaker.java
58 13 5
public static void updateTagsForResource()
in aws-datasync-locations3/src/main/java/software/amazon/datasync/locations3/TagRequestMaker.java
58 13 5
public static void updateTagsForResource()
in aws-datasync-locationefs/src/main/java/software/amazon/datasync/locationefs/TagRequestMaker.java
58 13 5
public static void updateTagsForResource()
in aws-datasync-task/src/main/java/software/amazon/datasync/task/TagRequestMaker.java
58 13 5
public static void updateTagsForResource()
in aws-datasync-locationhdfs/src/main/java/software/amazon/datasync/locationhdfs/TagRequestMaker.java
58 13 5
public static void updateTagsForResource()
in aws-datasync-locationnfs/src/main/java/software/amazon/datasync/locationnfs/TagRequestMaker.java
58 13 5
public static void updateTagsForResource()
in aws-datasync-locationfsxwindows/src/main/java/software/amazon/datasync/locationfsxwindows/TagRequestMaker.java
58 13 5
public ProgressEvent handleRequest()
in aws-datasync-agent/src/main/java/software/amazon/datasync/agent/ReadHandler.java
48 12 5
public ProgressEvent handleRequest()
in aws-datasync-locationhdfs/src/main/java/software/amazon/datasync/locationhdfs/CreateHandler.java
46 11 4
public ProgressEvent handleRequest()
in aws-datasync-locationobjectstorage/src/main/java/software/amazon/datasync/locationobjectstorage/CreateHandler.java
50 10 4
public ProgressEvent handleRequest()
in aws-datasync-locations3/src/main/java/software/amazon/datasync/locations3/CreateHandler.java
48 10 4
public ProgressEvent handleRequest()
in aws-datasync-locationefs/src/main/java/software/amazon/datasync/locationefs/CreateHandler.java
47 10 4
public ProgressEvent handleRequest()
in aws-datasync-locationsmb/src/main/java/software/amazon/datasync/locationsmb/CreateHandler.java
48 10 4
public ProgressEvent handleRequest()
in aws-datasync-task/src/main/java/software/amazon/datasync/task/CreateHandler.java
43 10 4
public ProgressEvent handleRequest()
in aws-datasync-locationnfs/src/main/java/software/amazon/datasync/locationnfs/CreateHandler.java
48 10 4
public ProgressEvent handleRequest()
in aws-datasync-locationfsxwindows/src/main/java/software/amazon/datasync/locationfsxwindows/CreateHandler.java
49 10 4
public ProgressEvent handleRequest()
in aws-datasync-agent/src/main/java/software/amazon/datasync/agent/CreateHandler.java
47 9 5
public ProgressEvent handleRequest()
in aws-datasync-locationobjectstorage/src/main/java/software/amazon/datasync/locationobjectstorage/ListHandler.java
34 6 4