microsoft / vscode-docker
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 1,127 units with 11,088 lines of code in units (44.2% of code).
    • 0 very long units (0 lines of code)
    • 6 long units (409 lines of code)
    • 114 medium size units (3,390 lines of code)
    • 246 small units (3,646 lines of code)
    • 761 very small units (3,643 lines of code)
0% | 3% | 30% | 32% | 32%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 3% | 30% | 32% | 32%
js0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/commands0% | 6% | 35% | 35% | 22%
src/tree0% | 2% | 21% | 29% | 46%
src/utils0% | 5% | 27% | 35% | 31%
src/tasks0% | 6% | 36% | 31% | 25%
src/debugging0% | 5% | 32% | 36% | 26%
src/docker0% | 0% | 27% | 33% | 38%
src/scaffolding0% | 0% | 43% | 30% | 26%
src0% | 0% | 58% | 21% | 19%
src/telemetry0% | 0% | 17% | 46% | 36%
ROOT0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
export function registerCommands()
in src/commands/registerCommands.ts
86 1 0
export function registerTrees()
in src/tree/registerTrees.ts
84 6 0
export async function getHandlebarsWithHelpers()
in src/utils/getHandlebarsWithHelpers.ts
69 14 0
private async inferVolumes()
in src/tasks/netcore/NetCoreTaskHelper.ts
65 13 5
private async getNewSiteConfig()
in src/commands/registries/azure/DockerSiteCreateStep.ts
54 14 1
await callWithTelemetryAndErrorHandling()
in src/debugging/DockerServerReadyAction.ts
51 10 2
export async function scheduleRunRequest()
in src/commands/registries/azure/tasks/scheduleRunRequest.ts
50 5 3
public async execInContainer()
in src/docker/DockerodeApiClient/DockerodeApiClient.ts
48 7 5
48 5 2
private async resolveLaunchDebugConfiguration()
in src/debugging/netcore/NetCoreDebugHelper.ts
47 14 2
public async resolveDebugConfiguration()
in src/debugging/python/PythonDebugHelper.ts
47 15 2
47 1 2
47 2 2
export async function downloadContainerFile()
in src/commands/containers/files/downloadContainerFile.ts
46 4 3
public async connectRegistry()
in src/tree/registries/RegistriesTreeItem.ts
46 7 3
public async execute()
in src/commands/registries/azure/DockerAssignAcrPullRoleStep.ts
43 5 2
export async function logInToDockerCli()
in src/commands/registries/logInToDockerCli.ts
43 10 2
export async function deployImageToAzure()
in src/commands/registries/azure/deployImageToAzure.ts
42 4 2
async function compose()
in src/commands/compose/compose.ts
41 12 2
private async groupItems()
in src/tree/LocalRootTreeItemBase.ts
41 7 1