microsoft / azure-pipelines-vscode
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 146 units with 1,903 lines of code in units (55.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (93 lines of code)
    • 12 simple units (298 lines of code)
    • 132 very simple units (1,512 lines of code)
0% | 0% | 4% | 15% | 79%
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% | 5% | 16% | 78%
cs0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/helpers0% | 0% | 20% | 24% | 55%
src/configure/helper0% | 0% | 7% | 6% | 85%
src/configure0% | 0% | 0% | 26% | 73%
src/configure/model0% | 0% | 0% | 81% | 18%
src/configure/clients0% | 0% | 0% | 7% | 92%
src0% | 0% | 0% | 7% | 92%
tools/extract-yaml-testcases0% | 0% | 0% | 0% | 100%
tools/extract-yaml-testcases/src0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
export function parseError()
in src/helpers/parseError.ts
50 19 1
public static getRepositoryDetailsFromRemoteUrl()
in src/configure/helper/devOps/azureDevOpsHelper.ts
43 11 1
public async validateOrganizationName()
in src/configure/clients/devOps/organizationsClient.ts
26 10 1
private parseId()
in src/configure/model/models.ts
30 10 0
private async setWorkspace()
in src/configure/configure.ts
39 8 0
public async callWithTelemetryAndErrorHandling()
in src/helpers/telemetryHelper.ts
38 8 1
38 7 0
public static generateAadApplicationName()
in src/configure/helper/graphHelper.ts
22 7 2
function getMessage()
in src/helpers/parseError.ts
3 7 2
function unpackErrorFromField()
in src/helpers/parseError.ts
15 7 2
private async getAzureDevOpsDetails()
in src/configure/configure.ts
58 6 0
async function analyzeRepo()
in src/configure/helper/templateHelper.ts
15 6 1
function getCode()
in src/helpers/parseError.ts
4 6 2
public requestCustomSchemaContent()
in src/schema-contributor.ts
10 6 1
public async waitForOperationSuccess()
in src/configure/clients/devOps/operationsClient.ts
23 5 1
public async listOrganizations()
in src/configure/clients/devOps/organizationsClient.ts
28 5 1
private async createPreRequisites()
in src/configure/configure.ts
45 5 0
private getSelectAppText()
in src/configure/configure.ts
11 5 1
private getPlaceholderText()
in src/configure/configure.ts
11 5 1
public static async createSpnAndAssignRole()
in src/configure/helper/graphHelper.ts
29 5 3