microsoft / node-fast-plist
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 30 units with 415 lines of code in units (95.8% of code).
    • 1 very long units (116 lines of code)
    • 0 long units (0 lines of code)
    • 0 medium size units (0 lines of code)
    • 14 small units (196 lines of code)
    • 15 very small units (103 lines of code)
27% | 0% | 0% | 47% | 24%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts27% | 0% | 0% | 47% | 24%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src27% | 0% | 0% | 47% | 24%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
function _parse()
in src/main.ts
116 27 3
function enterDict()
in src/main.ts
17 4 0
enterDict: function()
in src/main.ts
16 3 0
function acceptReal()
in src/main.ts
16 5 1
16 5 1
function escapeVal()
in src/main.ts
16 6 1
15 4 1
13 4 1
function acceptDate()
in src/main.ts
13 4 1
function acceptData()
in src/main.ts
13 4 1
function acceptBool()
in src/main.ts
13 4 1
12 2 1
enterDict: function()
in src/main.ts
12 2 0
function acceptKey()
in src/main.ts
12 4 1
12 2 0
function enterArray()
in src/main.ts
10 3 0
9 6 0
9 2 0
function leaveDict()
in src/main.ts
9 3 0
function leaveArray()
in src/main.ts
9 3 0