aws-samples / amazon-honeycode-connect-integration-sample
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 7 units with 209 lines of code in units (43.6% of code).
    • 0 very long units (0 lines of code)
    • 2 long units (120 lines of code)
    • 2 medium size units (74 lines of code)
    • 0 small units (0 lines of code)
    • 3 very small units (15 lines of code)
0% | 57% | 35% | 0% | 7%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js0% | 57% | 35% | 0% | 7%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
lambda/ConnectPullPromptsFromDynamoDB0% | 88% | 0% | 0% | 12%
lib0% | 51% | 43% | 0% | 4%
lambda/SavePromptsToDynamoDB0% | 0% | 100% | 0% | 0%
lambda/SavePromptsToS30% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 7 longest units
Unit# linesMcCabe index# params
function getLocalisationMessages()
in lambda/ConnectPullPromptsFromDynamoDB/index.js
66 13 0
function exportPromptsToS3()
in lib/honeycode_to_s3.js
54 1 1
function exportPromptsToDynamoDB()
in lib/honeycode_to_dynamodb.js
45 1 1
function saveToDynamoDB()
in lambda/SavePromptsToDynamoDB/index.js
29 5 1
function invokeCallbackFunction()
in lambda/ConnectPullPromptsFromDynamoDB/index.js
9 2 1
constructor()
in lib/honeycode_connect_lab-stack.js
5 1 3
await saveToS3()
in lambda/SavePromptsToS3/index.js
1 1 3