aws-cloudformation / aws-cloudformation-resource-providers-rekognition
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 9 units with 162 lines of code in units (48.2% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 4 medium size units (139 lines of code)
    • 0 small units (0 lines of code)
    • 5 very small units (23 lines of code)
0% | 0% | 85% | 0% | 14%
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% | 85% | 0% | 14%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
aws-rekognition-project/src/main/java/software/amazon/rekognition/project0% | 0% | 85% | 0% | 14%
Alternative Visuals
Longest Units
Top 9 longest units
Unit# linesMcCabe index# params
public ProgressEvent handleRequest()
in aws-rekognition-project/src/main/java/software/amazon/rekognition/project/DeleteHandler.java
38 4 4
public ProgressEvent handleRequest()
in aws-rekognition-project/src/main/java/software/amazon/rekognition/project/ReadHandler.java
37 4 4
public ProgressEvent handleRequest()
in aws-rekognition-project/src/main/java/software/amazon/rekognition/project/CreateHandler.java
34 3 4
public ProgressEvent handleRequest()
in aws-rekognition-project/src/main/java/software/amazon/rekognition/project/ListHandler.java
30 3 4
public ProgressEvent handleRequest()
in aws-rekognition-project/src/main/java/software/amazon/rekognition/project/UpdateHandler.java
7 1 4
static Optional findProjectByNameInResponse()
in aws-rekognition-project/src/main/java/software/amazon/rekognition/project/Utils.java
7 1 2
private boolean hasReadOnlyProperties()
in aws-rekognition-project/src/main/java/software/amazon/rekognition/project/CreateHandler.java
3 1 1
public Configuration()
in aws-rekognition-project/src/main/java/software/amazon/rekognition/project/Configuration.java
3 1 0
static String getProjectNameFromArn()
in aws-rekognition-project/src/main/java/software/amazon/rekognition/project/Utils.java
3 1 1