aws-cloudformation / aws-cloudformation-resource-providers-batch
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 30 units with 363 lines of code in units (61.3% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 6 medium size units (182 lines of code)
    • 5 small units (64 lines of code)
    • 19 very small units (117 lines of code)
0% | 0% | 50% | 17% | 32%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java0% | 0% | 50% | 17% | 32%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy0% | 0% | 50% | 17% | 32%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public ProgressEvent handleRequest()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/CreateHandler.java
38 8 4
public ProgressEvent handleRequest()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/DeleteHandler.java
33 4 4
private List listSchedulingPolicies()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/ListHandler.java
32 4 4
public ProgressEvent handleRequest()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/ReadHandler.java
30 4 4
static void handleTagging()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/TagUtils.java
25 3 6
public ProgressEvent handleRequest()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/UpdateHandler.java
24 3 4
private String generateParameterName()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/CreateHandler.java
15 1 2
public ProgressEvent handleRequest()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/ListHandler.java
15 2 4
static void handleBatchExceptions()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/Exceptions.java
12 4 3
static FairsharePolicy toRequestFairSharePolicy()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/Translator.java
11 4 1
static List toShareDistribution()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/Translator.java
11 3 1
static ResourceModel toModelSchedulingPolicy()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/Translator.java
10 2 1
static List toModelShareDistribution()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/Translator.java
10 1 1
static CreateSchedulingPolicyRequest toCreateSchedulingPolicyRequest()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/Translator.java
10 2 3
static UpdateSchedulingPolicyRequest toUpdateSchedulingPolicyRequest()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/Translator.java
8 2 1
static Map getTagsToDelete()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/TagUtils.java
8 2 2
static Map getTagsToCreate()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/TagUtils.java
8 2 2
static void handleInvalidInputException()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/Exceptions.java
8 2 3
static UntagResourceRequest toUntagResourceRequest()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/Translator.java
7 1 2
static TagResourceRequest toTagResourceRequest()
in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/Translator.java
7 1 2