microsoft / vscode-azureappservice
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 240 units with 2,704 lines of code in units (23.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 6 medium complex units (294 lines of code)
    • 30 simple units (874 lines of code)
    • 204 very simple units (1,536 lines of code)
0% | 0% | 10% | 32% | 56%
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% | 10% | 32% | 56%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/commands/createWebApp0% | 0% | 23% | 30% | 46%
src/commands/deploy0% | 0% | 24% | 29% | 45%
src/commands0% | 0% | 20% | 16% | 63%
src/tree0% | 0% | 3% | 44% | 51%
src/commands/postDeploy0% | 0% | 0% | 73% | 26%
src/commands/remoteDebug0% | 0% | 0% | 77% | 22%
src/utils0% | 0% | 0% | 10% | 89%
src/commands/appSettings0% | 0% | 0% | 28% | 71%
src0% | 0% | 0% | 39% | 60%
src/commands/logstream0% | 0% | 0% | 64% | 35%
src/vsCodeConfig0% | 0% | 0% | 34% | 65%
src/commands/deployments0% | 0% | 0% | 0% | 100%
src/commands/connections0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
src/commands/api0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
export async function deploy()
in src/commands/deploy/deploy.ts
63 23 3
export async function setPostPromptDefaults()
in src/commands/createWebApp/setPostPromptDefaults.ts
61 22 2
export async function getStackPicks()
in src/commands/createWebApp/stacks/getStackPicks.ts
47 15 2
public pickTreeItemImpl()
in src/tree/SiteTreeItem.ts
26 14 1
function shouldPromptForSurvey()
in src/commands/deploy/failureMoreInfoSurvey.ts
37 13 2
export async function generateDeploymentScript()
in src/commands/generateDeploymentScript.ts
60 11 2
public async createChildImpl()
in src/tree/CosmosDBTreeItem.ts
60 10 1
private getSiteConfig()
in src/commands/createWebApp/WebAppCreateStep.ts
41 9 1
export function getRemoteDebugLanguage()
in src/commands/remoteDebug/getRemoteDebugLanguage.ts
26 9 2
label: localize()
in src/tree/CosmosDBTreeItem.ts
56 9 2
private detectDocDBConnections()
in src/tree/CosmosDBTreeItem.ts
34 9 1
export async function setPrePromptDefaults()
in src/commands/createWebApp/setPrePromptDefaults.ts
21 8 1
export async function setPreDeployConfig()
in src/commands/deploy/setPreDeployConfig.ts
23 8 1
export async function getLinuxDetectorError()
in src/commands/postDeploy/getLinuxDetectorError.ts
47 8 6
private detectPostgresConnections()
in src/tree/CosmosDBTreeItem.ts
35 8 1
public async writeFileImpl()
in src/AppServiceFileSystem.ts
27 7 4
function checkPlanForPerformanceDrop()
in src/commands/createWebApp/setPostPromptDefaults.ts
9 7 1
function getFlagOs()
in src/commands/createWebApp/stacks/getStackPicks.ts
11 7 2
async function getMavenModuleFromPom()
in src/commands/deploy/java/tryGetMavenModule.ts
20 7 1
function isNodeVersionSupported()
in src/commands/remoteDebug/getRemoteDebugLanguage.ts
16 7 1