microsoft / vscode-loader
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 419 units with 4,400 lines of code in units (86.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 13 medium complex units (551 lines of code)
    • 51 simple units (1,176 lines of code)
    • 355 very simple units (2,673 lines of code)
0% | 0% | 12% | 26% | 60%
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% | 16% | 27% | 56%
js0% | 0% | 9% | 25% | 64%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 0% | 9% | 24% | 65%
src/core0% | 0% | 18% | 31% | 50%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
59 23 1
43 21 1
private _resolve()
in src/core/moduleManager.ts
61 17 1
62 17 1
public moduleIdToPaths()
in src/core/configuration.ts
37 16 1
37 16 1
private _onModuleComplete()
in src/core/moduleManager.ts
59 14 1
22 12 2
48 12 1
public load()
in src/core/scriptLoader.ts
48 11 3
private static _replaceURL()
in src/css.build.ts
18 11 2
public load()
in src/nls.build.ts
23 11 4
public load()
in src/nls.ts
34 11 4
private _detect()
in src/core/env.ts
11 10 0
export function init()
in src/core/main.ts
20 10 0
private _onLoadError()
in src/core/moduleManager.ts
34 10 2
private _loadModule()
in src/core/moduleManager.ts
40 10 1
11 10 0
20 10 2
34 10 2