microsoft / MCW-Continuous-delivery-in-Azure-DevOps
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 31 units with 192 lines of code in units (2.0% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 0 simple units (0 lines of code)
    • 31 very simple units (192 lines of code)
0% | 0% | 0% | 0% | 100%
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% | 0% | 0% | 100%
ts0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lab-files/content-init0% | 0% | 0% | 0% | 100%
lab-files/content-api/controllers0% | 0% | 0% | 0% | 100%
lab-files/content-web0% | 0% | 0% | 0% | 100%
lab-files/content-web/src0% | 0% | 0% | 0% | 100%
lab-files/content-api0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
exports.list = function()
in Hands-on lab/lab-files/content-api/controllers/sessions.server.controller.js
13 2 2
exports.list = function()
in Hands-on lab/lab-files/content-api/controllers/speakers.server.controller.js
10 2 2
function()
in Hands-on lab/lab-files/content-init/server.js
11 2 1
const createSession = function()
in Hands-on lab/lab-files/content-init/server.js
11 2 2
function()
in Hands-on lab/lab-files/content-init/server.js
11 2 1
const createSpeaker = function()
in Hands-on lab/lab-files/content-init/server.js
11 2 2
request()
in Hands-on lab/lab-files/content-web/app.js
7 2 4
request()
in Hands-on lab/lab-files/content-web/app.js
7 2 4
request()
in Hands-on lab/lab-files/content-web/app.js
7 2 4
getSpeakers()
in Hands-on lab/lab-files/content-web/app.js
7 2 2
getSessions()
in Hands-on lab/lab-files/content-web/app.js
7 2 2
stats()
in Hands-on lab/lab-files/content-web/app.js
8 2 2
function stats()
in Hands-on lab/lab-files/content-api/controllers/app.server.controller.js
10 1 0
exports.speakersGet = function()
in Hands-on lab/lab-files/content-api/controllers/app.server.controller.js
6 1 2
exports.statsGet = function()
in Hands-on lab/lab-files/content-api/controllers/app.server.controller.js
4 1 2
exports.sessionsGet = function()
in Hands-on lab/lab-files/content-api/controllers/app.server.controller.js
6 1 2
const init = function()
in Hands-on lab/lab-files/content-api/routes.js
8 1 1
function()
in Hands-on lab/lab-files/content-init/server.js
5 1 1
function()
in Hands-on lab/lab-files/content-init/server.js
5 1 1
function getSessions()
in Hands-on lab/lab-files/content-web/app.js
2 1 1