microsoft / code-push-vsts-extension
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 33 units with 407 lines of code in units (61.2% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (157 lines of code)
    • 2 simple units (33 lines of code)
    • 27 very simple units (217 lines of code)
0% | 0% | 38% | 8% | 53%
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% | 38% | 8% | 53%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Tasks/codepush-release-cordova0% | 0% | 30% | 9% | 59%
Tasks/codepush-patch0% | 0% | 100% | 0% | 0%
Tasks/codepush-release0% | 0% | 22% | 10% | 67%
Tasks/codepush-promote0% | 0% | 86% | 0% | 13%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function performPatchTask()
in Tasks/codepush-patch/codepush-patch.js
37 20 9
function performDeployTask()
in Tasks/codepush-release-cordova/codepush-release-cordova.js
54 19 10
function performPromoteTask()
in Tasks/codepush-promote/codepush-promote.js
31 17 9
function performDeployTask()
in Tasks/codepush-release/codepush-release.js
35 13 9
function buildCommand()
in Tasks/codepush-release-cordova/codepush-release-cordova.js
17 6 3
function buildCommand()
in Tasks/codepush-release/codepush-release.js
16 6 3
function performDeployTask()
in Tasks/codepush-release-cordova/test.js
17 4 1
function performDeployTask()
in Tasks/codepush-release/test.js
17 4 1
function stubExecToFailOnCommandType()
in Tasks/codepush-release-cordova/test.js
10 3 1
function stubExecToFailOnCommandType()
in Tasks/codepush-release/test.js
10 3 1
function executeCommandAndHandleResult()
in Tasks/codepush-release-cordova/codepush-release-cordova.js
12 2 3
function ensureLoggedOut()
in Tasks/codepush-release-cordova/codepush-release-cordova.js
3 2 1
function executeCommandAndHandleResult()
in Tasks/codepush-release/codepush-release.js
12 2 3
rollout: parseInt()
in Tasks/codepush-promote/codepush-promote.js
5 1 2
function log()
in Tasks/codepush-release-cordova/codepush-release-cordova.js
3 1 1
describe()
in Tasks/codepush-release-cordova/test.js
3 1 2
before()
in Tasks/codepush-release-cordova/test.js
3 1 1
afterEach()
in Tasks/codepush-release-cordova/test.js
6 1 1
function checkCommandsEqual()
in Tasks/codepush-release-cordova/test.js
7 1 2
it()
in Tasks/codepush-release-cordova/test.js
11 1 2