microsoft / vscode-spring-boot-dashboard
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 52 units with 409 lines of code in units (73.0% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 4 medium size units (134 lines of code)
    • 7 small units (104 lines of code)
    • 41 very small units (171 lines of code)
0% | 0% | 32% | 25% | 41%
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% | 35% | 20% | 43%
java0% | 0% | 0% | 100% | 0%
js0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 0% | 35% | 20% | 43%
java-extension/src/main/java/com/microsoft/vscode/spring/boot/dashboard/java/extension0% | 0% | 0% | 100% | 0%
scripts0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public async startBootApp()
in src/Controller.ts
47 7 2
37 3 2
public async openBootApp()
in src/Controller.ts
28 7 1
22 5 0
18 4 0
18 1 1
public static void main()
in java-extension/src/main/java/com/microsoft/vscode/spring/boot/dashboard/java/extension/JmxService.java
15 3 1
public async startBootApps()
in src/Controller.ts
15 5 1
export function readAll()
in src/stream-util.ts
14 1 1
function isBootAppClasspath()
in src/BootAppManager.ts
13 5 1
static String getPortViaAdmin()
in java-extension/src/main/java/com/microsoft/vscode/spring/boot/dashboard/java/extension/JmxService.java
11 2 1
private _getOutput()
in src/Controller.ts
9 2 1
public getAppBySession()
in src/BootAppManager.ts
8 2 1
private async _getMainClass()
in src/Controller.ts
8 6 1
8 2 2
public onDidStartBootApp()
in src/Controller.ts
7 2 1
public async stopBootApp()
in src/Controller.ts
7 2 2
constructor()
in src/BootAppManager.ts
6 1 0
public onDidStopBootApp()
in src/Controller.ts
6 2 1
private _setState()
in src/Controller.ts
6 1 2