aws-cloudformation / aws-cloudformation-resource-providers-datasync
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 229 units with 3,165 lines of code in units (60.5% of code).
    • 0 very long units (0 lines of code)
    • 9 long units (542 lines of code)
    • 33 medium size units (1,205 lines of code)
    • 30 small units (500 lines of code)
    • 157 very small units (918 lines of code)
0% | 17% | 38% | 15% | 29%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java0% | 17% | 38% | 15% | 29%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
aws-datasync-agent0% | 21% | 44% | 3% | 29%
aws-datasync-locationsmb0% | 17% | 38% | 17% | 26%
aws-datasync-locationhdfs0% | 13% | 33% | 22% | 29%
aws-datasync-locationobjectstorage0% | 16% | 40% | 18% | 23%
aws-datasync-task0% | 15% | 37% | 24% | 22%
aws-datasync-locationnfs0% | 16% | 38% | 11% | 34%
aws-datasync-locationfsxwindows0% | 18% | 37% | 15% | 28%
aws-datasync-locations30% | 17% | 36% | 12% | 33%
aws-datasync-locationefs0% | 18% | 35% | 12% | 33%
Alternative Visuals
Longest Units
Top 20 longest 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-locationobjectstorage/src/main/java/software/amazon/datasync/locationobjectstorage/CreateHandler.java
50 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-locations3/src/main/java/software/amazon/datasync/locations3/CreateHandler.java
48 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-agent/src/main/java/software/amazon/datasync/agent/ReadHandler.java
48 12 5
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-locationefs/src/main/java/software/amazon/datasync/locationefs/CreateHandler.java
47 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-locationhdfs/src/main/java/software/amazon/datasync/locationhdfs/CreateHandler.java
46 11 4
public ProgressEvent handleRequest()
in aws-datasync-task/src/main/java/software/amazon/datasync/task/ReadHandler.java
44 4 4
public ProgressEvent handleRequest()
in aws-datasync-task/src/main/java/software/amazon/datasync/task/CreateHandler.java
43 10 4