microsoft / azure-pipelines-vscode
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 146 units with 1,903 lines of code in units (55.5% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (58 lines of code)
    • 24 medium size units (761 lines of code)
    • 36 small units (552 lines of code)
    • 85 very small units (532 lines of code)
0% | 3% | 39% | 29% | 27%
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% | 40% | 27% | 28%
cs0% | 0% | 0% | 86% | 13%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/configure0% | 11% | 57% | 28% | 2%
src/configure/helper0% | 0% | 30% | 30% | 38%
src/configure/clients0% | 0% | 38% | 27% | 34%
src/helpers0% | 0% | 45% | 6% | 48%
src/configure/model0% | 0% | 81% | 0% | 18%
src0% | 0% | 18% | 45% | 35%
tools/extract-yaml-testcases0% | 0% | 0% | 86% | 13%
tools/extract-yaml-testcases/src0% | 0% | 0% | 73% | 26%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
private async getAzureDevOpsDetails()
in src/configure/configure.ts
58 6 0
export function parseError()
in src/helpers/parseError.ts
50 19 1
private async createPreRequisites()
in src/configure/configure.ts
45 5 0
public static getRepositoryDetailsFromRemoteUrl()
in src/configure/helper/devOps/azureDevOpsHelper.ts
43 11 1
public static getBuildDefinitionPayload()
in src/configure/helper/devOps/azureDevOpsHelper.ts
42 2 3
private async setWorkspace()
in src/configure/configure.ts
39 8 0
private async getGitRepositoryParameters()
in src/configure/configure.ts
38 4 1
38 7 0
public async callWithTelemetryAndErrorHandling()
in src/helpers/telemetryHelper.ts
38 8 1
private async getAzureResourceDetails()
in src/configure/configure.ts
36 4 0
public async createAzureServiceConnection()
in src/configure/clients/devOps/serviceConnectionClient.ts
33 1 5
private parseId()
in src/configure/model/models.ts
30 10 0
public static async createSpnAndAssignRole()
in src/configure/helper/graphHelper.ts
29 5 3
private static async createAadApp()
in src/configure/helper/graphHelper.ts
29 1 3
public async listOrganizations()
in src/configure/clients/devOps/organizationsClient.ts
28 5 1
private async updateScmType()
in src/configure/configure.ts
27 4 1
public async validateOrganizationName()
in src/configure/clients/devOps/organizationsClient.ts
26 10 1
private async createAndRunPipeline()
in src/configure/configure.ts
25 4 0
25 2 1
public async createGitHubServiceConnection()
in src/configure/clients/devOps/serviceConnectionClient.ts
24 1 2