microsoft / vscode-chrome-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 52 units with 681 lines of code in units (72.8% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (74 lines of code)
    • 1 medium complex units (23 lines of code)
    • 11 simple units (269 lines of code)
    • 39 very simple units (315 lines of code)
0% | 10% | 3% | 39% | 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% | 11% | 3% | 38% | 46%
js0% | 0% | 0% | 55% | 44%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 11% | 3% | 38% | 46%
ROOT0% | 0% | 0% | 55% | 44%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public launch()
in src/chromeDebugAdapter.ts
74 28 3
23 12 3
private async spawnChrome()
in src/chromeDebugAdapter.ts
60 10 6
public commonArgs()
in src/chromeDebugAdapter.ts
16 8 1
18 8 0
function doBuild()
in gulpfile.js
26 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
protected onFrameNavigated()
in src/chromeDebugAdapter.ts
13 6 1
30 6 1
public attach()
in src/chromeProvidedPortConnection.ts
11 6 5
10 6 1
private async killChromeOnWindows()
in src/chromeDebugAdapter.ts
26 5 1
13 5 3
public initialize()
in src/chromeDebugAdapter.ts
12 3 1
protected async onPaused()
in src/chromeDebugAdapter.ts
11 3 2
19 3 2
function getFsPath()
in src/extension.ts
6 3 1
9 3 2