microsoft / vscode-postgresql
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 545 units with 5,687 lines of code in units (59.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 10 medium complex units (405 lines of code)
    • 38 simple units (948 lines of code)
    • 497 very simple units (4,334 lines of code)
0% | 0% | 7% | 16% | 76%
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% | 7% | 16% | 75%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/models0% | 0% | 12% | 19% | 68%
src/views0% | 0% | 10% | 11% | 77%
src/controllers0% | 0% | 3% | 15% | 80%
src/languageservice0% | 0% | 0% | 18% | 81%
src/prompts0% | 0% | 0% | 30% | 69%
src/connectionconfig0% | 0% | 0% | 25% | 74%
src/configurations0% | 0% | 0% | 0% | 100%
tasks0% | 0% | 0% | 0% | 100%
src/credentialstore0% | 0% | 0% | 0% | 100%
src0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private static getRuntimeIdHelper()
in src/models/platform.ts
49 23 2
function handleKeyDown()
in src/views/htmlcontent/src/js/slick.dragrowselector.ts
74 23 1
export function fixupConnectionCredentials()
in src/models/connectionInfo.ts
63 21 1
private handleConnectionErrors()
in src/controllers/connectionManager.ts
41 17 3
private static getRuntimeId()
in src/models/platform.ts
34 15 3
function handleClick()
in src/views/htmlcontent/src/js/slick.dragrowselector.ts
44 14 1
public static FromReleaseInfo()
in src/models/platform.ts
30 13 2
28 12 1
export function isSameProfile()
in src/models/utils.ts
16 11 2
private stringCodeForInternal()
in src/views/htmlcontent/src/js/services/shortcuts.service.ts
26 11 1
protected static getRequiredCredentialValuesQuestions()
in src/models/connectionCredentials.ts
67 10 4
public static createPrompt()
in src/prompts/factory.ts
19 10 2
public onRunQuery()
in src/controllers/mainController.ts
32 9 1
public onDidCloseTextDocument()
in src/controllers/mainController.ts
28 9 1
function getSystemProxyURL()
in src/languageservice/proxy.ts
8 9 1
public static ensureRequiredPropertiesSet()
in src/models/connectionCredentials.ts
32 9 7
public render()
in src/prompts/input.ts
23 9 0
public getConnections()
in src/connectionconfig/connectionconfig.ts
22 8 1
private handleConnectionSuccess()
in src/controllers/connectionManager.ts
27 8 4
private handleConnectionResult()
in src/controllers/connectionManager.ts
23 8 3