microsoft / azure-pipelines-tool-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 49 units with 784 lines of code in units (50.0% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (173 lines of code)
    • 5 simple units (153 lines of code)
    • 42 very simple units (458 lines of code)
0% | 0% | 22% | 19% | 58%
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
js0% | 0% | 45% | 5% | 49%
ts0% | 0% | 0% | 32% | 67%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 0% | 22% | 19% | 58%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
128 19 0
45 14 0
33 9 2
29 8 3
54 8 3
var run = function()
in make-util.js
20 7 3
17 6 2
18 5 3
20 5 1
14 4 1
20 4 2
19 4 4
44 4 3
24 4 2
16 4 3
11 3 2
7 3 1
14 3 1
24 3 1
19 3 5