microsoft / windows-admin-center-sdk
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 123 units with 1,328 lines of code in units (65.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (146 lines of code)
    • 14 simple units (485 lines of code)
    • 106 very simple units (697 lines of code)
0% | 0% | 10% | 36% | 52%
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% | 14% | 29% | 56%
js0% | 0% | 7% | 44% | 47%
cs0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Ux/gulps/gulp-resjson0% | 0% | 27% | 38% | 33%
Ux/gulps/gulp-ps-code0% | 0% | 16% | 35% | 47%
Ux/gulps/gulp-svg-code0% | 0% | 0% | 51% | 48%
Ux/gulps/gulp-merge-json-in-folders0% | 0% | 0% | 20% | 79%
Ux/tools0% | 0% | 0% | 66% | 33%
Ux/src/app0% | 0% | 0% | 0% | 100%
Ux/src/test-util0% | 0% | 0% | 0% | 100%
Plugin0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function()
in GatewayPluginExample/Ux/gulps/gulp-resjson/index.js
52 12 3
function()
in GatewayPluginExample/Ux/gulps/gulp-resjson/index.ts
50 12 3
private addData()
in GatewayPluginExample/Ux/gulps/gulp-ps-code/ps-code-convert.ts
44 11 1
var _loop_1 = function()
in GatewayPluginExample/Ux/gulps/gulp-ps-code/ps-code-convert.js
43 10 1
private addData()
in GatewayPluginExample/Ux/gulps/gulp-svg-code/svg-code-convert.ts
55 10 2
JsonMerge.prototype.extend = function()
in GatewayPluginExample/Ux/gulps/gulp-merge-json-in-folders/json-merge.js
24 9 2
private extend()
in GatewayPluginExample/Ux/gulps/gulp-merge-json-in-folders/json-merge.ts
24 9 2
ResJsonConverter.prototype.convert = function()
in GatewayPluginExample/Ux/gulps/gulp-resjson/resjson-convert.js
34 9 1
public convert()
in GatewayPluginExample/Ux/gulps/gulp-resjson/resjson-convert.ts
31 9 1
function gulpSvgCode()
in GatewayPluginExample/Ux/gulps/gulp-svg-code/index.js
52 8 0
function()
in GatewayPluginExample/Ux/gulps/gulp-svg-code/index.ts
27 8 3
var _loop_1 = function()
in GatewayPluginExample/Ux/gulps/gulp-svg-code/svg-code-convert.js
46 8 1
function gulpPsCode()
in GatewayPluginExample/Ux/gulps/gulp-ps-code/index.js
35 7 1
function()
in GatewayPluginExample/Ux/gulps/gulp-ps-code/index.ts
17 6 3
ResJsonConverter.prototype.traverse = function()
in GatewayPluginExample/Ux/gulps/gulp-resjson/resjson-convert.js
40 6 2
private traverse()
in GatewayPluginExample/Ux/gulps/gulp-resjson/resjson-convert.ts
37 6 2
function gulpLicense()
in GatewayPluginExample/Ux/tools/gulp-license.js
20 6 1
ResJsonConverter.prototype.scan = function()
in GatewayPluginExample/Ux/gulps/gulp-resjson/resjson-convert.js
20 5 1
private scan()
in GatewayPluginExample/Ux/gulps/gulp-resjson/resjson-convert.ts
19 5 1
function extendError()
in GatewayPluginExample/Ux/gulps/gulp-merge-json-in-folders/index.js
10 4 2