aws-cloudformation / aws-cloudformation-resource-providers-customer-profiles
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 69 units with 1,199 lines of code in units (61.1% of code).
    • 0 very long units (0 lines of code)
    • 6 long units (433 lines of code)
    • 11 medium size units (394 lines of code)
    • 10 small units (145 lines of code)
    • 42 very small units (227 lines of code)
0% | 36% | 32% | 12% | 18%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java0% | 36% | 32% | 12% | 18%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
aws-customerprofiles-objecttype/src/main/java/software/amazon/customerprofiles/objecttype0% | 44% | 38% | 7% | 9%
aws-customerprofiles-integration/src/main/java/software/amazon/customerprofiles/integration0% | 38% | 41% | 4% | 15%
aws-customerprofiles-domain/src/main/java/software/amazon/customerprofiles/domain0% | 47% | 38% | 0% | 13%
aws-customerprofiles-integration/src/main/java/software/amazon/customerprofiles/integration/translators0% | 0% | 0% | 51% | 48%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public ProgressEvent handleRequest()
in aws-customerprofiles-objecttype/src/main/java/software/amazon/customerprofiles/objecttype/UpdateHandler.java
90 15 4
public ProgressEvent handleRequest()
in aws-customerprofiles-integration/src/main/java/software/amazon/customerprofiles/integration/UpdateHandler.java
80 15 4
public ProgressEvent handleRequest()
in aws-customerprofiles-domain/src/main/java/software/amazon/customerprofiles/domain/UpdateHandler.java
79 15 4
public ProgressEvent handleRequest()
in aws-customerprofiles-objecttype/src/main/java/software/amazon/customerprofiles/objecttype/CreateHandler.java
76 9 4
private ProgressEvent createIntegration()
in aws-customerprofiles-integration/src/main/java/software/amazon/customerprofiles/integration/CreateHandler.java
56 13 3
public ProgressEvent handleRequest()
in aws-customerprofiles-domain/src/main/java/software/amazon/customerprofiles/domain/CreateHandler.java
52 9 4
public ProgressEvent handleRequest()
in aws-customerprofiles-objecttype/src/main/java/software/amazon/customerprofiles/objecttype/ListHandler.java
45 6 4
public ProgressEvent handleRequest()
in aws-customerprofiles-integration/src/main/java/software/amazon/customerprofiles/integration/ListHandler.java
44 6 4
public ProgressEvent handleRequest()
in aws-customerprofiles-objecttype/src/main/java/software/amazon/customerprofiles/objecttype/ReadHandler.java
43 6 4
public ProgressEvent handleRequest()
in aws-customerprofiles-domain/src/main/java/software/amazon/customerprofiles/domain/ListHandler.java
39 6 4
public ProgressEvent handleRequest()
in aws-customerprofiles-integration/src/main/java/software/amazon/customerprofiles/integration/ReadHandler.java
38 6 4
public ProgressEvent handleRequest()
in aws-customerprofiles-domain/src/main/java/software/amazon/customerprofiles/domain/ReadHandler.java
36 6 4
public ProgressEvent handleRequest()
in aws-customerprofiles-objecttype/src/main/java/software/amazon/customerprofiles/objecttype/DeleteHandler.java
33 6 4
public ProgressEvent handleRequest()
in aws-customerprofiles-integration/src/main/java/software/amazon/customerprofiles/integration/DeleteHandler.java
33 6 4
public ProgressEvent handleRequest()
in aws-customerprofiles-domain/src/main/java/software/amazon/customerprofiles/domain/DeleteHandler.java
32 6 4
public ProgressEvent handleRequest()
in aws-customerprofiles-integration/src/main/java/software/amazon/customerprofiles/integration/CreateHandler.java
30 4 4
static List mapKeysToList()
in aws-customerprofiles-objecttype/src/main/java/software/amazon/customerprofiles/objecttype/Translator.java
21 4 1
private static ScheduledTriggerProperties toServiceScheduledTriggerProperties()
in aws-customerprofiles-integration/src/main/java/software/amazon/customerprofiles/integration/translators/TriggerConfigTranslator.java
17 6 1
public SourceFlowConfig toServiceSourceFlowConfig()
in aws-customerprofiles-integration/src/main/java/software/amazon/customerprofiles/integration/translators/SalesforceTranslator.java
17 3 1
static List mapFieldsToList()
in aws-customerprofiles-objecttype/src/main/java/software/amazon/customerprofiles/objecttype/Translator.java
15 2 1