microsoft / vscode-docker
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 1,127 units with 11,088 lines of code in units (44.2% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 20 medium complex units (728 lines of code)
    • 72 simple units (1,794 lines of code)
    • 1,035 very simple units (8,566 lines of code)
0% | 0% | 6% | 16% | 77%
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% | 6% | 16% | 77%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/scaffolding0% | 0% | 14% | 11% | 73%
src/utils0% | 0% | 10% | 18% | 70%
src/tasks0% | 0% | 11% | 23% | 64%
src/debugging0% | 0% | 11% | 27% | 61%
src/tree0% | 0% | 3% | 16% | 80%
src/commands0% | 0% | 4% | 13% | 81%
src/docker0% | 0% | 2% | 5% | 92%
src/telemetry0% | 0% | 0% | 35% | 64%
src0% | 0% | 0% | 14% | 85%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public async resolveDebugConfiguration()
in src/debugging/python/PythonDebugHelper.ts
47 15 2
private async getInputPath()
in src/scaffolding/wizard/ScaffoldFileStep.ts
40 15 1
public async getDockerRunOptions()
in src/tasks/node/NodeTaskHelper.ts
38 15 2
export function getImagePropertyValue()
in src/tree/images/ImageProperties.ts
39 15 2
private async getNewSiteConfig()
in src/commands/registries/azure/DockerSiteCreateStep.ts
54 14 1
private async resolveLaunchDebugConfiguration()
in src/debugging/netcore/NetCoreDebugHelper.ts
47 14 2
export async function getHandlebarsWithHelpers()
in src/utils/getHandlebarsWithHelpers.ts
69 14 0
public async getSubWizard()
in src/scaffolding/wizard/ChoosePlatformStep.ts
34 13 1
private async inferVolumes()
in src/tasks/netcore/NetCoreTaskHelper.ts
65 13 5
public compareChildrenImpl()
in src/tree/LocalRootTreeItemBase.ts
18 13 2
async function compose()
in src/commands/compose/compose.ts
41 12 2
18 12 3
public getPropertyValue()
in src/tree/containers/ContainersTreeItem.ts
24 12 2
function resolveSingleVariable()
in src/utils/resolveVariables.ts
34 12 3
private async loadContexts()
in src/docker/ContextManager.ts
33 11 0
public async prompt()
in src/scaffolding/wizard/java/JavaGatherInformationStep.ts
31 11 1
public async prompt()
in src/scaffolding/wizard/netCore/NetCoreGatherInformationStep.ts
29 11 1
private async validateResolvedDefinition()
in src/tasks/DockerComposeTaskProvider.ts
19 11 2
export function getContainerStateIcon()
in src/tree/containers/ContainerProperties.ts
19 11 1
export async function multiSelectNodes()
in src/utils/multiSelectNodes.ts
29 11 5