microsoft / vscode-cpptools
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 792 units with 10,725 lines of code in units (72.1% of code).
    • 1 very complex units (133 lines of code)
    • 9 complex units (743 lines of code)
    • 57 medium complex units (3,042 lines of code)
    • 79 simple units (1,902 lines of code)
    • 646 very simple units (4,905 lines of code)
1% | 6% | 28% | 17% | 45%
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
ts1% | 7% | 28% | 17% | 45%
cpp0% | 0% | 0% | 68% | 31%
js0% | 0% | 0% | 17% | 82%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Extension/src/LanguageServer1% | 8% | 32% | 18% | 39%
Extension/src/Debugger0% | 10% | 25% | 14% | 49%
Extension/src0% | 0% | 16% | 16% | 66%
Extension/ui0% | 0% | 13% | 0% | 86%
Extension/tools0% | 0% | 23% | 12% | 64%
Code Samples/Fib0% | 0% | 0% | 82% | 17%
Extension0% | 0% | 0% | 18% | 81%
Code Samples/BoxConsoleSample0% | 0% | 0% | 0% | 100%
Code Samples/BoxConsoleSample/Objects0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private updateServerOnFolderSettingsChange()
in Extension/src/LanguageServer/configurations.ts
133 56 0
private parsePropertiesFile()
in Extension/src/LanguageServer/configurations.ts
108 34 0
public processResults()
in Extension/src/LanguageServer/references.ts
94 31 1
public onDidChangeSettings()
in Extension/src/LanguageServer/client.ts
79 29 2
private filterAndSanitize()
in Extension/src/LanguageServer/settingsTracker.ts
58 29 4
async provideDebugConfigurations()
in Extension/src/Debugger/configurationProvider.ts
107 28 2
constructor()
in Extension/src/LanguageServer/client.ts
115 27 2
private applyDefaultConfigurationValues()
in Extension/src/LanguageServer/configurations.ts
36 26 1
private getErrorsForConfigUI()
in Extension/src/LanguageServer/configurations.ts
74 26 1
public async getTasks()
in Extension/src/LanguageServer/cppBuildTaskProvider.ts
72 26 1
private updateStatus()
in Extension/src/LanguageServer/client.ts
91 23 1
private getTask:()
in Extension/src/LanguageServer/cppBuildTaskProvider.ts
48 23 5
export async function activate()
in Extension/src/LanguageServer/extension.ts
83 23 0
private getClangPath()
in Extension/src/LanguageServer/settings.ts
49 23 1
private updateConfig()
in Extension/src/LanguageServer/settingsPanel.ts
71 23 1
private reportProgress()
in Extension/src/LanguageServer/references.ts
71 21 3
public populateEditorConfig()
in Extension/src/LanguageServer/settings.ts
123 20 1
43 20 2
export function initialize()
in Extension/src/Debugger/extension.ts
92 19 1
private collectSettings()
in Extension/src/LanguageServer/settingsTracker.ts
46 19 1