aws / aws-cdk-rfcs
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 127 lines of code in units (84.1% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (63 lines of code)
    • 0 medium size units (0 lines of code)
    • 4 small units (58 lines of code)
    • 2 very small units (6 lines of code)
0% | 49% | 0% | 45% | 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% | 49% | 0% | 45% | 4%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
rfc-render0% | 49% | 0% | 45% | 4%
Alternative Visuals
Longest Units
Top 7 longest units
Unit# linesMcCabe index# params
async function render()
in tools/rfc-render/render-rfc-table.js
63 11 0
async function main()
in tools/rfc-render/inject-table.js
20 5 0
function renderUser()
in tools/rfc-render/render-rfc-table.js
13 4 1
function determineStatus()
in tools/rfc-render/render-rfc-table.js
13 4 1
function findMetadata()
in tools/rfc-render/render-rfc-table.js
12 5 1
function byNumber()
in tools/rfc-render/render-rfc-table.js
3 1 2
function findDocFile()
in tools/rfc-render/render-rfc-table.js
3 1 2