microsoft / vscode-mssql
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 825 units with 9,058 lines of code in units (41.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 21 medium complex units (1,073 lines of code)
    • 52 simple units (1,337 lines of code)
    • 752 very simple units (6,648 lines of code)
0% | 0% | 11% | 14% | 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% | 11% | 14% | 73%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/controllers0% | 0% | 19% | 15% | 65%
src/models0% | 0% | 15% | 16% | 67%
src/objectExplorer0% | 0% | 29% | 6% | 63%
src/views0% | 0% | 10% | 15% | 73%
src/services0% | 0% | 14% | 9% | 76%
src/prompts0% | 0% | 0% | 41% | 58%
lib/ads-adal-library0% | 0% | 0% | 19% | 80%
src/languageservice0% | 0% | 0% | 11% | 88%
src/azure0% | 0% | 0% | 8% | 91%
src/scripting0% | 0% | 0% | 73% | 26%
src/connectionconfig0% | 0% | 0% | 25% | 74%
src0% | 0% | 0% | 0% | 100%
src/configurations0% | 0% | 0% | 0% | 100%
src/queryHistory0% | 0% | 0% | 0% | 100%
tasks0% | 0% | 0% | 0% | 100%
src/credentialstore0% | 0% | 0% | 0% | 100%
src/firewall0% | 0% | 0% | 0% | 100%
src/metadata0% | 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
private async handleConnectionErrors()
in src/controllers/connectionManager.ts
41 19 3
public async copyResults()
in src/controllers/queryRunner.ts
85 19 4
private handleSessionCreatedNotification()
in src/objectExplorer/objectExplorerService.ts
68 19 0
83 16 5
private static getRuntimeId()
in src/models/platform.ts
36 16 3
public async createSession()
in src/objectExplorer/objectExplorerService.ts
69 16 3
public async connect()
in src/controllers/connectionManager.ts
71 14 3
public static async ensureRequiredPropertiesSet()
in src/models/connectionCredentials.ts
54 14 7
function handleClick()
in src/views/htmlcontent/src/js/slick.dragrowselector.ts
44 14 1
private initializeObjectExplorer()
in src/controllers/mainController.ts
116 13 0
public static fromReleaseInfo()
in src/models/platform.ts
30 13 2
private async handleTaskChangedNotification()
in src/services/sqlTasksService.ts
32 13 1
private tryCombineSelections()
in src/views/htmlcontent/src/js/components/app.component.ts
25 13 1
public async refreshAzureAccountToken()
in src/controllers/connectionManager.ts
44 12 1
28 12 1
public async sanitizeConnectionProfiles()
in src/controllers/mainController.ts
28 11 0
export function isSameProfile()
in src/models/utils.ts
16 11 2
async getChildren()
in src/objectExplorer/objectExplorerService.ts
54 11 1