microsoft / azure-devops-node-api
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,240 units with 39,225 lines of code in units (59.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 8 medium complex units (444 lines of code)
    • 12 simple units (373 lines of code)
    • 1,220 very simple units (38,408 lines of code)
0% | 0% | 1% | <1% | 97%
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% | 1% | <1% | 97%
js0% | 0% | 0% | 5% | 94%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
api0% | 0% | 1% | <1% | 97%
ROOT0% | 0% | 0% | 16% | 83%
api/opensource/node-http-ntlm0% | 0% | 0% | 0% | 100%
api/handlers0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function _getTranslatedField()
in api/Serialization.ts
88 25 4
private replaceRouteValues()
in api/VsoClient.ts
65 17 2
40 16 2
function _getTranslatedEnumValue()
in api/Serialization.ts
34 14 3
constructor()
in api/WebApi.ts
57 14 4
private _getAccountUrl()
in api/TaskAgentApi.ts
21 13 1
public async getItem()
in api/FileContainerApi.ts
70 11 4
69 11 17
20 9 2
18 9 2
48 8 3
public async getBuilds()
in api/BuildApi.ts
71 7 21
function _getTranslatedObject()
in api/Serialization.ts
19 7 4
function findLicense()
in generate-third-party-notice.js
20 7 1
51 6 5
export function deserialize()
in api/Serialization.ts
16 6 4
function _getTranslatedDateValue()
in api/Serialization.ts
10 6 2
var _extend = function()
in api/Serialization.ts
12 6 1
44 6 4
44 6 4