microsoft / vscode-vsce
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 142 units with 2,216 lines of code in units (74.0% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (110 lines of code)
    • 7 medium complex units (426 lines of code)
    • 13 simple units (342 lines of code)
    • 121 very simple units (1,338 lines of code)
0% | 4% | 19% | 15% | 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% | 4% | 19% | 15% | 60%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 4% | 19% | 15% | 60%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
async onFile()
in src/package.ts
110 40 1
66 22 1
async function _publish()
in src/publish.ts
72 22 3
constructor()
in src/package.ts
83 20 2
async onEnd()
in src/package.ts
63 18 0
41 16 1
51 12 1
bugs: getBugsUrl()
in src/package.ts
50 11 2
private guessBaseUrls()
in src/package.ts
37 10 1
25 10 1
45 10 2
constructor()
in src/package.ts
23 9 1
function getBugsUrl()
in src/package.ts
17 8 2
36 8 2
21 7 3
18 7 2
async onEnd()
in src/package.ts
26 7 0
function collectFiles()
in src/package.ts
43 7 4
15 6 1
15 6 3