microsoft / vscode-java-debug
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 186 units with 2,528 lines of code in units (86.8% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (269 lines of code)
    • 10 medium complex units (457 lines of code)
    • 28 simple units (632 lines of code)
    • 146 very simple units (1,170 lines of code)
0% | 10% | 18% | 25% | 46%
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% | 10% | 18% | 25% | 45%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 10% | 18% | 25% | 45%
scripts/build0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
162 50 3
export function getProcesses()
in src/processTree.ts
107 28 5
74 24 4
async function runJavaFile()
in src/extension.ts
56 22 2
57 19 2
async function applyHCR()
in src/extension.ts
49 15 1
private async resolveMainClass()
in src/configurationProvider.ts
33 12 2
16 12 1
46 12 1
public async provideInlineValues()
in src/JavaInlineValueProvider.ts
58 11 3
constructor()
in src/debugCodeLensProvider.ts
29 11 0
39 11 1
47 10 1
private async filterExcluded()
in src/configurationProvider.ts
26 10 2
async function constructDebugConfig()
in src/debugCodeLensProvider.ts
29 9 3
public async showQuickPick()
in src/mainClassPicker.ts
28 9 4
function convertToJavaProcess()
in src/processPicker.ts
26 9 3
31 8 3
12 8 0
private async resolvePath()
in src/configurationProvider.ts
30 8 5