microsoft / vscode-azuretools
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 944 units with 9,149 lines of code in units (40.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 26 medium complex units (1,164 lines of code)
    • 57 simple units (1,398 lines of code)
    • 861 very simple units (6,587 lines of code)
0% | 0% | 12% | 15% | 71%
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% | 15% | 73%
js0% | 0% | 34% | 9% | 55%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ui/src0% | 0% | 14% | 17% | 68%
appservice/src0% | 0% | 11% | 12% | 75%
triage-actions/common0% | 0% | 51% | 0% | 48%
triage-actions/needs-more-info-closer0% | 0% | 64% | 0% | 35%
triage-actions/api0% | 0% | 12% | 5% | 82%
triage-actions/locker0% | 0% | 60% | 0% | 39%
dev/src0% | 0% | 7% | 13% | 79%
databases/src0% | 0% | 0% | 22% | 77%
triage-actions/stale-closer0% | 0% | 0% | 51% | 48%
kudu/src0% | 0% | 0% | 16% | 83%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
export async function deploy()
in appservice/src/deploy/deploy.ts
83 25 3
constructor()
in triage-actions/api/testbed.js
12 21 1
export function parseError()
in ui/src/parseError.ts
55 21 1
export async function waitForDeploymentToComplete()
in appservice/src/deploy/waitForDeploymentToComplete.ts
61 20 5
function handleError()
in ui/src/callWithTelemetryAndErrorHandling.ts
74 20 3
export async function confirmOverwriteSettings()
in appservice/src/confirmOverwriteSettings.ts
60 17 4
constructor()
in triage-actions/api/testbed.js
32 17 2
octokitIssueToIssue()
in triage-actions/api/octokit.js
20 16 1
async run()
in triage-actions/common/Action.js
47 16 0
for await()
in triage-actions/needs-more-info-closer/NeedsMoreInfoCloser.js
45 16 1
async function tryGetLatestDeployment()
in appservice/src/deploy/waitForDeploymentToComplete.ts
51 15 5
public async prompt()
in ui/src/wizard/AzureWizard.ts
63 15 0
private async getQuickPicks()
in appservice/src/createAppService/AppServicePlanListStep.ts
38 14 1
export async function getDeployFsPath()
in appservice/src/deploy/getDeployFsPath.ts
47 13 3
public static async getLocation()
in ui/src/wizard/LocationListStep.ts
47 13 3
private async getQuickPicks()
in ui/src/wizard/StorageAccountListStep.ts
32 13 2
public async prompt()
in appservice/src/createAppService/AppServicePlanSkuStep.ts
33 12 1
export async function deleteSite()
in appservice/src/deleteSite.ts
35 12 2
public async run()
in triage-actions/common/Action.ts
43 12 0
for await()
in triage-actions/needs-more-info-closer/NeedsMoreInfoCloser.ts
38 12 1