aws-samples / amazon-honeycode-table-api-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 5 units with 142 lines of code in units (29.5% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (57 lines of code)
    • 2 medium size units (78 lines of code)
    • 0 small units (0 lines of code)
    • 2 very small units (7 lines of code)
0% | 40% | 54% | 0% | 4%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js0% | 40% | 54% | 0% | 4%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
lib0% | 40% | 55% | 0% | 4%
lambda/ExportContactHistoryS30% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 5 longest units
Unit# linesMcCabe index# params
function exportContactHistory()
in lib/export-contact-history-s3.js
57 2 1
function importCustomersDynamoDB()
in lib/import-customers-dynamodb.js
45 2 1
function importCustomersS3()
in lib/import-customers-s3.js
33 2 1
constructor()
in lib/honeycode-api-lab-stack.js
6 1 3
await saveToS3()
in lambda/ExportContactHistoryS3/index.js
1 1 3