microsoft / vscode-azure-account
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 200 units with 2,504 lines of code in units (78.2% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (221 lines of code)
    • 6 medium complex units (240 lines of code)
    • 17 simple units (438 lines of code)
    • 176 very simple units (1,605 lines of code)
0% | 8% | 9% | 17% | 64%
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% | 8% | 9% | 17% | 64%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/cloudConsole0% | 27% | 15% | 11% | 45%
src/login/commands0% | 0% | 26% | 0% | 73%
src/login0% | 0% | 5% | 32% | 62%
src0% | 0% | 9% | 13% | 77%
src/login/adal0% | 0% | 0% | 17% | 82%
src/login/msal0% | 0% | 0% | 15% | 84%
sample/src0% | 0% | 0% | 0% | 100%
src/utils0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
export function createCloudConsole()
in src/cloudConsole/cloudConsole.ts
221 39 3
function getUploadFile()
in src/cloudConsole/cloudConsole.ts
68 13 2
export async function provisionConsole()
in src/cloudConsole/cloudConsoleLauncher.ts
21 12 4
export async function selectSubscriptions()
in src/login/commands/selectSubscriptions.ts
50 12 0
async function resize()
in src/cloudConsole/cloudConsoleLauncher.ts
36 11 2
19 11 1
await callWithTelemetryAndErrorHandling()
in src/login/AzureLoginHelper.ts
46 11 2
export async function connectTerminal()
in src/cloudConsole/cloudConsoleLauncher.ts
25 10 5
constructor()
in src/login/AzureLoginHelper.ts
31 10 1
async function callback()
in src/login/server.ts
21 10 2
async function loadTenants()
in src/login/updateSubscriptions.ts
36 10 0
4 10 2
function connectSocket()
in src/cloudConsole/cloudConsoleLauncher.ts
34 7 2
export function main()
in src/cloudConsole/cloudConsoleLauncher.ts
35 7 0
function uploadFile()
in src/extension.ts
24 7 2
function getCallbackEnvironment()
in src/login/AuthProviderBase.ts
17 7 1
await callWithTelemetryAndErrorHandling()
in src/login/AzureLoginHelper.ts
27 7 2
public async loginSilent()
in src/login/adal/AdalAuthProvider.ts
24 7 3
export function createServer()
in src/login/server.ts
47 7 1
public async waitForLogin()
in src/login/AzureAccountExtensionApi.ts
22 6 1