microsoft / windows-admin-center-extension-template
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 177 units with 2,040 lines of code in units (66.8% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (172 lines of code)
    • 17 simple units (544 lines of code)
    • 156 very simple units (1,324 lines of code)
0% | 0% | 8% | 26% | 64%
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% | 9% | 19% | 70%
js0% | 0% | 7% | 33% | 59%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
templates/legacy/windows-admin-center-extension-template/gulps0% | 0% | 11% | 38% | 49%
src0% | 0% | 6% | 14% | 79%
templates/legacy/windows-admin-center-extension-template/tools0% | 0% | 0% | 66% | 33%
templates/windows-admin-center-extension-template/gulpfile.ts/common0% | 0% | 0% | 0% | 100%
templates/legacy/windows-admin-center-extension-template/src0% | 0% | 0% | 0% | 100%
templates/windows-admin-center-extension-template/gulpfile.ts0% | 0% | 0% | 0% | 100%
templates/windows-admin-center-extension-template/src/app0% | 0% | 0% | 0% | 100%
templates/windows-admin-center-extension-template/src0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function()
in templates/legacy/windows-admin-center-extension-template/gulps/gulp-resjson/index.js
52 12 3
function()
in templates/legacy/windows-admin-center-extension-template/gulps/gulp-resjson/index.ts
50 12 3
26 11 0
private addData()
in templates/legacy/windows-admin-center-extension-template/gulps/gulp-ps-code/ps-code-convert.ts
44 11 1
var _loop_1 = function()
in templates/legacy/windows-admin-center-extension-template/gulps/gulp-ps-code/ps-code-convert.js
43 10 1
private addData()
in templates/legacy/windows-admin-center-extension-template/gulps/gulp-svg-code/svg-code-convert.ts
55 10 2
JsonMerge.prototype.extend = function()
in templates/legacy/windows-admin-center-extension-template/gulps/gulp-merge-json-in-folders/json-merge.js
24 9 2
private extend()
in templates/legacy/windows-admin-center-extension-template/gulps/gulp-merge-json-in-folders/json-merge.ts
24 9 2
ResJsonConverter.prototype.convert = function()
in templates/legacy/windows-admin-center-extension-template/gulps/gulp-resjson/resjson-convert.js
34 9 1
public convert()
in templates/legacy/windows-admin-center-extension-template/gulps/gulp-resjson/resjson-convert.ts
31 9 1
function isValidDirectory()
in src/update-version.js
8 8 1
function gulpSvgCode()
in templates/legacy/windows-admin-center-extension-template/gulps/gulp-svg-code/index.js
52 8 0
function()
in templates/legacy/windows-admin-center-extension-template/gulps/gulp-svg-code/index.ts
27 8 3
var _loop_1 = function()
in templates/legacy/windows-admin-center-extension-template/gulps/gulp-svg-code/svg-code-convert.js
46 8 1
3 7 1
function gulpPsCode()
in templates/legacy/windows-admin-center-extension-template/gulps/gulp-ps-code/index.js
35 7 1
function updateFiles()
in src/index.js
48 6 4
function()
in templates/legacy/windows-admin-center-extension-template/gulps/gulp-ps-code/index.ts
17 6 3
ResJsonConverter.prototype.traverse = function()
in templates/legacy/windows-admin-center-extension-template/gulps/gulp-resjson/resjson-convert.js
40 6 2
private traverse()
in templates/legacy/windows-admin-center-extension-template/gulps/gulp-resjson/resjson-convert.ts
37 6 2