microsoft / vscode-sublime-keybindings
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 25 units with 249 lines of code in units (73.5% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 2 medium size units (51 lines of code)
    • 8 small units (109 lines of code)
    • 15 very small units (89 lines of code)
0% | 0% | 20% | 43% | 35%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 0% | 20% | 43% | 35%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 0% | 20% | 44% | 34%
src/web0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
28 8 3
private mapAllSettings()
in src/mapper.ts
23 6 2
private mapSetting()
in src/mapper.ts
18 6 2
16 5 1
async function start()
in src/extension.ts
14 6 0
async function getSettings()
in src/extension.ts
14 5 1
13 3 2
12 5 2
11 2 1
11 2 0
9 3 1
export function getOSDefaultPaths()
in src/sublimeFolderFinder.ts
9 2 0
9 3 1
8 2 1
7 2 0
7 2 0
7 2 0
async function showPrompt()
in src/extension.ts
6 3 0
async function showPicker()
in src/extension.ts
6 3 1
export async function activate()
in src/web/extension.ts
5 1 1