microsoft / azure-pipelines-task-lib
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 192 units with 2,944 lines of code in units (42.7% of code).
    • 0 very complex units (0 lines of code)
    • 3 complex units (381 lines of code)
    • 16 medium complex units (785 lines of code)
    • 23 simple units (542 lines of code)
    • 150 very simple units (1,236 lines of code)
0% | 12% | 26% | 18% | 41%
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% | 15% | 32% | 17% | 35%
js0% | 0% | 0% | 22% | 77%
cs0% | 0% | 0% | 31% | 68%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
node0% | 14% | 29% | 19% | 37%
powershell/CompiledHelpers0% | 0% | 0% | 31% | 68%
powershell0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
127 41 4
private execWithPiping()
in node/toolrunner.ts
169 32 2
85 30 4
60 23 4
export function _which()
in node/internal.ts
63 20 2
65 20 2
57 18 3
export function find()
in node/task.ts
76 18 2
60 16 4
export function _loadData()
in node/internal.ts
36 13 0
38 13 1
19 13 4
48 12 1
export function rmRF()
in node/task.ts
56 12 1
private _argStringToArray()
in node/toolrunner.ts
44 12 1
private _getSpawnArgs()
in node/toolrunner.ts
37 11 1
private _uv_quote_cmd_arg()
in node/toolrunner.ts
28 11 1
private _cloneExecOptions()
in node/toolrunner.ts
15 11 1
public exec()
in node/toolrunner.ts
83 11 1
public execSync()
in node/toolrunner.ts
23 10 1