microsoft / vscode-nls
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 31 units with 447 lines of code in units (69.0% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (119 lines of code)
    • 7 simple units (189 lines of code)
    • 22 very simple units (139 lines of code)
0% | 0% | 26% | 42% | 31%
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% | 26% | 42% | 31%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/node0% | 0% | 31% | 43% | 25%
src/common0% | 0% | 0% | 43% | 56%
src/browser0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
67 22 1
52 15 0
40 10 2
function resolveLanguage()
in src/node/main.ts
31 9 1
export function format()
in src/common/common.ts
24 8 2
function createNLSBundle()
in src/node/main.ts
29 7 2
function loadNlsBundle()
in src/node/main.ts
25 7 2
23 6 1
export function config()
in src/node/main.ts
17 6 1
4 5 0
function mkdir()
in src/node/main.ts
17 5 1
18 4 1
18 4 1
export function is()
in src/common/common.ts
4 3 1
9 2 1
function RAL()
in src/common/ral.ts
6 2 0
export function install()
in src/common/ral.ts
6 2 1
function isBoolean()
in src/node/main.ts
3 2 1
9 2 1
8 2 1