microsoft / azure-pipelines-extensions
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 902 units with 10,687 lines of code in units (42.5% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (200 lines of code)
    • 17 medium complex units (884 lines of code)
    • 90 simple units (2,658 lines of code)
    • 793 very simple units (6,945 lines of code)
0% | 1% | 8% | 24% | 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
js0% | 4% | 15% | 30% | 49%
ts0% | 0% | 3% | 23% | 72%
tsx0% | 0% | 0% | 17% | 82%
cs0% | 0% | 0% | 10% | 89%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Extensions/GoogleAnalyticsExperiments0% | 6% | 8% | 31% | 54%
Extensions/Optimizely0% | 6% | 7% | 26% | 59%
ROOT0% | 0% | 37% | 32% | 30%
Extensions/ArtifactEngine0% | 0% | 8% | 18% | 73%
Extensions/Common0% | 0% | 11% | 34% | 53%
Extensions/ExternalTfs0% | 0% | 9% | 43% | 47%
Extensions/Ansible0% | 0% | 7% | 21% | 71%
Extensions/Terraform0% | 0% | 0% | 11% | 88%
Extensions/CircleCI0% | 0% | 0% | 29% | 70%
Extensions/DataSources0% | 0% | 0% | 18% | 81%
Extensions/CopyStageVariableToReleaseVariable0% | 0% | 0% | 100% | 0%
ServerTaskHelper/DistributedTask.ServerTask.Remote.Common0% | 0% | 0% | 16% | 83%
ServerTaskHelper/AzureFunctionSample0% | 0% | 0% | 25% | 74%
Extensions/BitBucket0% | 0% | 0% | 33% | 66%
Extensions/TeamCity0% | 0% | 0% | 26% | 73%
Extensions/AzureExp0% | 0% | 0% | 0% | 100%
ServerTaskHelper/HttpRequestSampleWithoutHandler0% | 0% | 0% | 0% | 100%
ServerTaskHelper/ServiceBusMessageHandler0% | 0% | 0% | 0% | 100%
ServerTaskHelper/HttpRequestHandler0% | 0% | 0% | 0% | 100%
ServerTaskHelper/AzureFunctionHandler0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function setupAmdLoader()
in Extensions/GoogleAnalyticsExperiments/Src/UIContribution/lib/VSS.SDK.js
100 30 0
function setupAmdLoader()
in Extensions/Optimizely/Src/UIContribution/lib/VSS.SDK.js
100 30 0
private _getAgent()
in Extensions/ArtifactEngine/Providers/typed-rest-client/HttpClient.ts
55 25 1
exec()
in Extensions/Common/lib/vsts-task-lib/toolRunner.js
60 21 1
function handoff()
in gulpfile.js
142 20 1
execSync()
in Extensions/Common/lib/vsts-task-lib/toolRunner.js
35 18 1
constructor()
in Extensions/ArtifactEngine/Providers/typed-rest-client/HttpClient.ts
37 17 3
59 15 1
private initializeAnsibleParameters()
in Extensions/Ansible/Src/Tasks/Ansible/ansibleTaskParameters.ts
44 14 0
GitWrapper.prototype.exec = function()
in Extensions/ExternalTfs/Src/Tasks/DownloadArtifactsTfsGit/gitwrapper.js
57 14 2
function init()
in Extensions/GoogleAnalyticsExperiments/Src/UIContribution/lib/VSS.SDK.js
52 13 1
function init()
in Extensions/Optimizely/Src/UIContribution/lib/VSS.SDK.js
52 13 1
function()
in package.js
73 13 3
private async _processResponse()
in Extensions/ArtifactEngine/Providers/typed-rest-client/RestClient.ts
41 11 2
function loadLocStrings()
in Extensions/Common/lib/vsts-task-lib/task.js
23 11 1
var serializeMember = function()
in Extensions/GoogleAnalyticsExperiments/Src/UIContribution/lib/VSS.SDK.js
47 11 3
XDMChannelManager.prototype._handleMessageReceived = function()
in Extensions/GoogleAnalyticsExperiments/Src/UIContribution/lib/VSS.SDK.js
30 11 1
var serializeMember = function()
in Extensions/Optimizely/Src/UIContribution/lib/VSS.SDK.js
47 11 3
XDMChannelManager.prototype._handleMessageReceived = function()
in Extensions/Optimizely/Src/UIContribution/lib/VSS.SDK.js
30 11 1
_argStringToArray()
in Extensions/Common/lib/vsts-task-lib/toolRunner.js
34 10 1