microsoft / vscode-react-native
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 1,060 units with 13,799 lines of code in units (74.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 13 medium complex units (945 lines of code)
    • 75 simple units (2,712 lines of code)
    • 972 very simple units (10,142 lines of code)
0% | 0% | 6% | 19% | 73%
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% | 6% | 19% | 73%
js0% | 0% | 0% | 44% | 55%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/extension0% | 0% | 9% | 15% | 74%
src/debugger0% | 0% | 21% | 19% | 58%
src/extension/android0% | 0% | 13% | 20% | 66%
src/debugger/direct0% | 0% | 43% | 0% | 56%
src/extension/debuggingConfiguration0% | 0% | 8% | 17% | 73%
src/extension/ios0% | 0% | 5% | 23% | 71%
src/extension/exponent0% | 0% | 4% | 24% | 71%
src/common0% | 0% | 0% | 24% | 75%
src/extension/networkInspector0% | 0% | 0% | 27% | 72%
src/extension/services0% | 0% | 0% | 16% | 83%
ROOT0% | 0% | 0% | 77% | 22%
src/extension/windows0% | 0% | 0% | 70% | 29%
src/common/node0% | 0% | 0% | 12% | 87%
src/cdp-proxy0% | 0% | 0% | 10% | 89%
src/extension/log0% | 0% | 0% | 9% | 90%
src/extension/macos0% | 0% | 0% | 0% | 100%
src/cdp-proxy/CDPMessageHandlers0% | 0% | 0% | 0% | 100%
tools0% | 0% | 0% | 0% | 100%
src/common/error0% | 0% | 0% | 0% | 100%
SampleApplication0% | 0% | 0% | 0% | 100%
js-patched0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public async launch()
in src/extension/appLauncher.ts
160 22 1
protected async attachRequest()
in src/debugger/direct/directDebugSession.ts
117 16 3
public async resolveMobileTarget()
in src/extension/generalMobilePlatform.ts
78 16 1
private async patchAppJson()
in src/extension/exponent/exponentHelper.ts
29 14 1
protected abstract establishDebugSession()
in src/debugger/debugSessionBase.ts
51 13 2
protected async initializeSettings()
in src/debugger/debugSessionBase.ts
47 13 1
public async collectTargets()
in src/extension/android/androidTargetManager.ts
42 13 1
public convert()
in src/debugger/sourceMapsCombinator.ts
57 12 1
public async runApp()
in src/extension/android/androidPlatform.ts
92 12 1
public async provideDebugConfigurations()
in src/extension/debuggingConfiguration/reactNativeDebugDynamicConfigProvider.ts
77 12 2
public static getOptFromRunArgs()
in src/extension/generalPlatform.ts
35 12 3
protected async attachRequest()
in src/debugger/rnDebugSession.ts
99 11 3
public async getTargetFromRunArgs()
in src/extension/ios/iOSPlatform.ts
61 11 0
public async forMessage()
in src/common/packager.ts
35 10 2
function getNativeModules()
in src/debugger/appWorker.ts
30 10 0
public async showInputBox()
in src/extension/debuggingConfiguration/multiStepInput.ts
73 10 10
public async runApp()
in src/extension/exponent/exponentPlatform.ts
91 10 0
public async getTarget()
in src/extension/ios/iOSPlatform.ts
44 10 0
public async getExecutableAndConfigurationFolder()
in src/extension/ios/plistBuddy.ts
74 10 7
private getTargetAndroidDeviceId()
in src/extension/networkInspector/certificateProvider.ts
44 10 3