microsoft / vscode-spring-initializr
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 128 units with 1,328 lines of code in units (73.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 5 medium complex units (272 lines of code)
    • 10 simple units (243 lines of code)
    • 113 very simple units (813 lines of code)
0% | 0% | 20% | 18% | 61%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
ts0% | 0% | 20% | 18% | 61%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/handler0% | 0% | 41% | 6% | 52%
src/Utils/xml0% | 0% | 17% | 0% | 82%
src/Utils0% | 0% | 0% | 44% | 55%
src/model0% | 0% | 0% | 64% | 36%
src0% | 0% | 0% | 26% | 73%
src/model/pomxml0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public async runSteps()
in src/handler/AddStartersHandler.ts
70 17 2
56 13 1
export async function updatePom()
in src/Utils/xml/index.ts
24 12 3
67 12 1
private async specifyDependencies()
in src/handler/SpecifyDependenciesStep.ts
55 11 1
public async getQuickPickItems()
in src/DependencyManager.ts
30 9 3
export function getCDCommand()
in src/Utils/VSCodeUI.ts
17 9 1
export function compareVersions()
in src/Utils/VersionHelper.ts
26 8 2
public async runSteps()
in src/handler/GenerateProjectHandler.ts
21 8 1
export function matchRange()
in src/Utils/VersionHelper.ts
18 7 2
47 7 3
16 7 1
public async getItems()
in src/model/ServiceManager.ts
30 7 2
20 6 0
public async getAvailableDependencies()
in src/model/ServiceManager.ts
18 6 2
private genLastSelectedItem()
in src/DependencyManager.ts
15 5 1
14 5 1
public getTextLines()
in src/Utils/xml/index.ts
10 5 1
async function searchForBootVersion()
in src/handler/AddStartersHandler.ts
20 5 1
async function specifyTargetFolder()
in src/handler/GenerateProjectHandler.ts
16 5 1