aws-samples / aws-lakeformation-datasharing-workflow
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 10 units with 420 lines of code in units (38.7% of code).
    • 0 very long units (0 lines of code)
    • 4 long units (273 lines of code)
    • 3 medium size units (101 lines of code)
    • 3 small units (46 lines of code)
    • 0 very small units (0 lines of code)
0% | 65% | 24% | 10% | 0%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 75% | 17% | 6% | 0%
js0% | 54% | 29% | 15% | 0%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/Components0% | 54% | 29% | 15% | 0%
infra/central/lib/AppStack0% | 100% | 0% | 0% | 0%
infra/central/lib/SecurityStack0% | 100% | 0% | 0% | 0%
infra/producer/lib0% | 0% | 100% | 0% | 0%
infra/central/lib0% | 0% | 0% | 100% | 0%
Alternative Visuals
Longest Units
Top 10 longest units
Unit# linesMcCabe index# params
constructor()
in infra/central/lib/AppStack/index.ts
80 1 3
constructor()
in infra/central/lib/SecurityStack/index.ts
74 1 3
function TableDetailsComponent()
in src/Components/TableDetailsComponent.js
66 7 1
function WorkflowExecutionDetailsComponent()
in src/Components/WorkflowExecutionDetailsComponent.js
53 4 1
constructor()
in infra/producer/lib/producer-stack.ts
36 1 3
function RequestAccessComponent()
in src/Components/RequestAccessComponent.js
34 6 3
function CatalogTablesComponent()
in src/Components/CatalogTablesComponent.js
31 1 1
function WorkflowExecutionsComponent()
in src/Components/WorkflowExecutionsComponent.js
18 1 1
function CatalogComponent()
in src/Components/CatalogComponent.js
15 1 1
constructor()
in infra/central/lib/infra-stack.ts
13 1 3