microsoft / azuredevopslabs
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 82 units with 684 lines of code in units (3.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (64 lines of code)
    • 3 simple units (78 lines of code)
    • 78 very simple units (542 lines of code)
0% | 0% | 9% | 11% | 79%
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% | 22% | 6% | 71%
cs0% | 0% | 0% | 14% | 85%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
js0% | 0% | 22% | 6% | 71%
labs/vstsextend0% | 0% | 0% | 14% | 85%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
64 16 1
function s()
in js/jekyll-search.js
18 8 2
public async Task ExternalLoginConfirmation()
in labs/vstsextend/launchdarkly/codesnippet/AccountController.cs
33 7 2
public async Task SendCode()
in labs/vstsextend/launchdarkly/codesnippet/AccountController.cs
27 6 1
public async Task Login()
in labs/vstsextend/launchdarkly/codesnippet/AccountController.cs
22 5 2
public async Task ConfirmEmail()
in labs/vstsextend/launchdarkly/codesnippet/AccountController.cs
14 5 2
public async Task ExternalLoginCallback()
in labs/vstsextend/launchdarkly/codesnippet/AccountController.cs
29 5 1
isArray()
in js/jekyll-search.js
3 4 1
public async Task VerifyCode()
in labs/vstsextend/launchdarkly/codesnippet/AccountController.cs
18 4 1
public async Task ForgotPassword()
in labs/vstsextend/launchdarkly/codesnippet/AccountController.cs
19 4 1
public async Task ResetPassword()
in labs/vstsextend/launchdarkly/codesnippet/AccountController.cs
19 4 1
public IActionResult Index()
in labs/vstsextend/launchdarkly/codesnippet/HomeController.cs
34 4 0
7 3 0
function findMatches()
in js/jekyll-search.js
4 3 3
function findMatchesInObject()
in js/jekyll-search.js
7 3 3
self.setFuzzy = function()
in js/jekyll-search.js
3 3 1
function addArray()
in js/jekyll-search.js
4 3 1
err ? throwError()
in js/jekyll-search.js
2 3 1
function validateOptions()
in js/jekyll-search.js
6 3 1
function assignOptions()
in js/jekyll-search.js
3 3 1