microsoft / cookie.gulp
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 88 units with 1,204 lines of code in units (24.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (165 lines of code)
    • 10 simple units (250 lines of code)
    • 74 very simple units (789 lines of code)
0% | 0% | 13% | 20% | 65%
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% | 13% | 20% | 65%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
core0% | 0% | 26% | 26% | 46%
core/processors0% | 0% | 43% | 0% | 56%
wix0% | 0% | 0% | 30% | 69%
electron-installer0% | 0% | 0% | 14% | 85%
tsc0% | 0% | 0% | 36% | 63%
ROOT0% | 0% | 0% | 0% | 100%
core/tasks0% | 0% | 0% | 0% | 100%
tslint0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
41 18 0
transform()
in core/processors/licensing.js
55 16 3
33 11 2
36 11 2
flush()
in tsc/tsc.js
31 9 1
23 8 0
function generateIconOptions()
in electron-installer/deb.js
21 8 1
function generateIconOptions()
in electron-installer/rpm.js
21 8 1
flush()
in wix/heat.js
23 8 1
function msi()
in wix/msi.js
44 8 4
function installDynamicDependencies()
in core/dynamic-dependency.js
20 7 0
function toGlob()
in core/glob-utils.js
23 7 2
22 7 0
write()
in core/log.js
22 7 2
8 5 1
function chain()
in core/steams-utils.js
17 5 1
flush()
in electron-installer/pack.js
1 5 1
function candle()
in wix/candle.js
16 5 1
function heat()
in wix/heat.js
24 5 1
function light()
in wix/light.js
18 5 1