microsoft / vscode-azurefunctions
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 879 units with 9,420 lines of code in units (47.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 18 medium complex units (893 lines of code)
    • 83 simple units (2,273 lines of code)
    • 778 very simple units (6,254 lines of code)
0% | 0% | 9% | 24% | 66%
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% | 8% | 23% | 67%
cs0% | 0% | 19% | 42% | 38%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/commands0% | 0% | 9% | 24% | 66%
src/templates0% | 0% | 11% | 16% | 72%
src/funcCoreTools0% | 0% | 21% | 29% | 48%
tools/JsonCli0% | 0% | 19% | 42% | 38%
src/utils0% | 0% | 7% | 15% | 76%
src/tree0% | 0% | 5% | 21% | 72%
src/vsCodeConfig0% | 0% | 11% | 44% | 44%
src/debug0% | 0% | 0% | 23% | 76%
src/downloadAzureProject0% | 0% | 0% | 71% | 28%
src/funcConfig0% | 0% | 0% | 17% | 82%
src0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
async function deploy()
in src/commands/deploy/deploy.ts
59 22 4
await callWithTelemetryAndErrorHandling()
in src/funcCoreTools/validateFuncCoreToolsIsLatest.ts
70 19 2
function parseVersionRange()
in src/utils/nugetUtils.ts
74 19 1
public async getSubWizard()
in src/commands/createFunction/FunctionListStep.ts
63 16 1
private static int Main()
in tools/JsonCli/src/Program.cs
89 16 1
export async function getStackPicks()
in src/commands/createFunctionApp/stacks/getStackPicks.ts
52 15 1
export async function executeFunction()
in src/commands/executeFunction.ts
60 13 2
export function parseScriptTemplate()
in src/templates/script/parseScriptTemplates.ts
45 13 3
function removeHiddenStacksAndProperties()
in src/commands/createFunctionApp/stacks/getStackPicks.ts
29 12 1
export async function initProjectForVSCode()
in src/commands/initProjectForVSCode/initProjectForVSCode.ts
32 12 3
async function startFuncTask()
in src/commands/pickFuncProcess.ts
55 12 3
displayName: getResourceValue()
in src/templates/script/parseScriptTemplates.ts
40 12 2
export async function verifyTargetFramework()
in src/vsCodeConfig/verifyTargetFramework.ts
37 12 4
public async prompt()
in src/commands/createFunction/FunctionListStep.ts
32 11 1
protected async executeCore()
in src/commands/initProjectForVSCode/InitVSCodeStep/DotnetInitVSCodeStep.ts
40 11 1
export async function getFuncPortFromTaskOrProject()
in src/funcCoreTools/funcHostTask.ts
27 11 3
async function getFramework()
in src/templates/dotnet/executeDotnetTemplateCommand.ts
39 11 2
public async loadMoreChildrenImpl()
in src/tree/AzureAccountTreeItemWithProjects.ts
50 11 2
public async getSubWizard()
in src/commands/createNewProject/NewProjectLanguageStep.ts
46 10 1
export async function tryGetFunctionProjectRoot()
in src/commands/createNewProject/verifyIsProject.ts
29 10 3