microsoft / vscode-edge-debug2
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 103 units with 1,318 lines of code in units (73.8% of code).
    • 0 very long units (0 lines of code)
    • 7 long units (410 lines of code)
    • 6 medium size units (178 lines of code)
    • 25 small units (346 lines of code)
    • 65 very small units (384 lines of code)
0% | 31% | 13% | 26% | 29%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 32% | 12% | 26% | 29%
js0% | 0% | 53% | 24% | 22%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 38% | 12% | 23% | 26%
src/legacyEdge0% | 22% | 11% | 31% | 34%
ROOT0% | 0% | 53% | 24% | 22%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public launch()
in src/chromeDebugAdapter.ts
82 34 3
private async spawnChrome()
in src/chromeDebugAdapter.ts
60 10 6
public async launch()
in src/legacyEdge/edgeDebugAdapter.ts
55 16 1
protected doAttach()
in src/chromeDebugAdapter.ts
54 7 6
private spawnEdge()
in src/legacyEdge/edgeDebugAdapter.ts
54 7 5
54 11 1
public async launch()
in src/edgeChromiumDebugAdapter.ts
51 16 3
40 19 3
30 6 1
protected doAttach()
in src/legacyEdge/edgeDebugAdapter.ts
30 4 6
async resolveDebugConfiguration()
in src/legacyEdge/extension.ts
28 11 3
private async killChromeOnWindows()
in src/chromeDebugAdapter.ts
26 5 1
function doBuild()
in gulpfile.js
24 7 2
19 3 2
function findExecutable()
in src/chromeDebugAdapter.ts
18 7 1
function findExecutable()
in src/legacyEdge/edgeDebugAdapter.ts
18 7 1
public async setValue()
in src/legacyEdge/edgeVariablesContainer.ts
18 3 3
public commonArgs()
in src/chromeDebugAdapter.ts
16 8 1
protected runConnection()
in src/edgeChromiumDebugAdapter.ts
16 2 0
public async variables()
in src/legacyEdge/edgeDebugAdapter.ts
16 7 1