microsoft / vscode-cordova
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 343 units with 4,506 lines of code in units (74.8% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (262 lines of code)
    • 16 medium complex units (949 lines of code)
    • 26 simple units (773 lines of code)
    • 299 very simple units (2,522 lines of code)
0% | 5% | 21% | 17% | 55%
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% | 21% | 15% | 56%
js0% | 0% | 0% | 59% | 40%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/debugger0% | 11% | 39% | 11% | 37%
src/utils0% | 8% | 7% | 23% | 60%
src0% | 0% | 41% | 0% | 58%
src/debugger/cdp-proxy0% | 0% | 11% | 11% | 76%
src/extension0% | 0% | 13% | 20% | 66%
src/utils/android0% | 0% | 9% | 38% | 51%
ROOT0% | 0% | 0% | 59% | 40%
src/utils/log0% | 0% | 0% | 0% | 100%
src/common/node0% | 0% | 0% | 0% | 100%
src/common0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private startIonicDevServer()
in src/debugger/cordovaDebugSession.ts
169 43 2
public static determineIonicMajorVersion()
in src/utils/cordovaProjectHelper.ts
93 28 1
protected launchRequest()
in src/debugger/cordovaDebugSession.ts
95 25 3
private launchIos()
in src/debugger/cordovaDebugSession.ts
81 23 3
private attachAndroid()
in src/debugger/cordovaDebugSession.ts
120 23 1
public static nvmSupport()
in src/utils/nodeVersionHelper.ts
58 20 1
private async resolveAndroidTarget()
in src/debugger/cordovaDebugSession.ts
51 19 2
44 14 1
protected attachRequest()
in src/debugger/cordovaDebugSession.ts
75 14 3
public processApplicationCDPMessage()
in src/debugger/cdp-proxy/CDPMessageHandlers/implementation/safariIonicCDPMessageHandler.ts
43 13 1
private attachIos()
in src/debugger/cordovaDebugSession.ts
79 13 1
public static getEnvArgument()
in src/utils/cordovaProjectHelper.ts
31 13 1
74 12 1
public processApplicationCDPMessage()
in src/debugger/cdp-proxy/CDPMessageHandlers/implementation/safariCordovaCDPMessageHandler.ts
37 12 1
export function cordovaRunCommand()
in src/debugger/extension.ts
49 12 5
public launchServer()
in src/extension/simulate.ts
47 12 3
private async launchAndroid()
in src/debugger/cordovaDebugSession.ts
39 11 3
public async collectTargets()
in src/utils/android/androidTargetManager.ts
26 11 1
84 9 4
public getClientPath()
in src/debugger/cdp-proxy/sourcemapPathTransformer.ts
27 9 1