microsoft / vscode-edge-debug2
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 103 units with 1,318 lines of code in units (73.8% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (82 lines of code)
    • 5 medium complex units (228 lines of code)
    • 15 simple units (361 lines of code)
    • 82 very simple units (647 lines of code)
0% | 6% | 17% | 27% | 49%
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% | 6% | 17% | 26% | 49%
js0% | 0% | 0% | 53% | 46%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 10% | 18% | 28% | 42%
src/legacyEdge0% | 0% | 17% | 22% | 60%
ROOT0% | 0% | 0% | 53% | 46%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public launch()
in src/chromeDebugAdapter.ts
82 34 3
40 19 3
public async launch()
in src/edgeChromiumDebugAdapter.ts
51 16 3
public async launch()
in src/legacyEdge/edgeDebugAdapter.ts
55 16 1
async resolveDebugConfiguration()
in src/legacyEdge/extension.ts
28 11 3
54 11 1
private async spawnChrome()
in src/chromeDebugAdapter.ts
60 10 6
public commonArgs()
in src/chromeDebugAdapter.ts
16 8 1
function doBuild()
in gulpfile.js
24 7 2
protected doAttach()
in src/chromeDebugAdapter.ts
54 7 6
public async disconnect()
in src/chromeDebugAdapter.ts
13 7 1
function findExecutable()
in src/chromeDebugAdapter.ts
18 7 1
public async variables()
in src/legacyEdge/edgeDebugAdapter.ts
16 7 1
private spawnEdge()
in src/legacyEdge/edgeDebugAdapter.ts
54 7 5
function findExecutable()
in src/legacyEdge/edgeDebugAdapter.ts
18 7 1
12 7 0
protected onFrameNavigated()
in src/chromeDebugAdapter.ts
13 6 1
30 6 1
private getWebViewPort()
in src/edgeChromiumDebugAdapter.ts
13 6 2
10 6 1