microsoft / vscode-spring-initializr
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 128 units with 1,328 lines of code in units (73.3% of code).
    • 0 very long units (0 lines of code)
    • 4 long units (248 lines of code)
    • 7 medium size units (203 lines of code)
    • 29 small units (422 lines of code)
    • 88 very small units (455 lines of code)
0% | 18% | 15% | 31% | 34%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 18% | 15% | 31% | 34%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/handler0% | 41% | 3% | 28% | 26%
src/Utils0% | 0% | 25% | 42% | 32%
src0% | 0% | 48% | 13% | 38%
src/model0% | 0% | 40% | 40% | 20%
src/Utils/xml0% | 0% | 17% | 38% | 44%
src/model/pomxml0% | 0% | 0% | 29% | 70%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public async runSteps()
in src/handler/AddStartersHandler.ts
70 17 2
67 12 1
56 13 1
private async specifyDependencies()
in src/handler/SpecifyDependenciesStep.ts
55 11 1
47 7 3
public async getQuickPickItems()
in src/DependencyManager.ts
30 9 3
public async getItems()
in src/model/ServiceManager.ts
30 7 2
export function compareVersions()
in src/Utils/VersionHelper.ts
26 8 2
25 4 2
export async function updatePom()
in src/Utils/xml/index.ts
24 12 3
public async runSteps()
in src/handler/GenerateProjectHandler.ts
21 8 1
20 6 0
async function searchForBootVersion()
in src/handler/AddStartersHandler.ts
20 5 1
async function downloadAndUnzip()
in src/handler/GenerateProjectHandler.ts
20 3 2
async function updateWorkspaceEdit()
in src/Utils/xml/index.ts
19 4 4
export function matchRange()
in src/Utils/VersionHelper.ts
18 7 2
private get downloadUrl()
in src/handler/GenerateProjectHandler.ts
18 1 0
public async getAvailableDependencies()
in src/model/ServiceManager.ts
18 6 2
export function getCDCommand()
in src/Utils/VSCodeUI.ts
17 9 1
async function specifyTargetFolder()
in src/handler/GenerateProjectHandler.ts
16 5 1