microsoft / vscode-azure-iot-edge
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 801 units with 12,004 lines of code in units (83.3% of code).
    • 1 very complex units (900 lines of code)
    • 6 complex units (481 lines of code)
    • 54 medium complex units (2,289 lines of code)
    • 119 simple units (3,036 lines of code)
    • 621 very simple units (5,298 lines of code)
7% | 4% | 19% | 25% | 44%
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
js10% | 4% | 22% | 24% | 37%
ts0% | 3% | 10% | 26% | 58%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
assets/views10% | 4% | 22% | 24% | 37%
src/edge0% | 10% | 20% | 26% | 42%
src/common0% | 0% | 10% | 15% | 73%
assets/marketplace0% | 0% | 52% | 0% | 47%
src0% | 0% | 0% | 82% | 17%
src/intelliSense0% | 0% | 0% | 56% | 43%
src/gallery0% | 0% | 0% | 76% | 23%
src/container0% | 0% | 0% | 10% | 89%
src/marketplace0% | 0% | 0% | 25% | 74%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
(function (global, factory)()
in assets/views/vue.js
900 95 2
function parseFilters()
in assets/views/vue.js
66 38 1
function hydrate()
in assets/views/vue.js
83 34 4
function enter()
in assets/views/vue.js
77 33 2
private async addModuleProj()
in src/edge/edgeManager.ts
134 32 6
function patchVnode()
in assets/views/vue.js
50 29 4
render: function render()
in assets/views/vue.js
71 29 1
function _createElement()
in assets/views/vue.js
74 25 5
start: function start()
in assets/views/vue.js
41 23 3
function processAttrs()
in assets/views/vue.js
70 22 1
function addHandler()
in assets/views/vue.js
61 20 6
function handleStartTag()
in assets/views/vue.js
38 20 1
function parseEndTag()
in assets/views/vue.js
45 20 3
function genData$2()
in assets/views/vue.js
58 20 2
Vue.prototype.$mount = function()
in assets/views/vue.js
58 20 2
60 20 1
function updateChildren()
in assets/views/vue.js
64 19 5
chars: function chars()
in assets/views/vue.js
42 19 1
function genElement()
in assets/views/vue.js
28 19 2
function normalizeArrayChildren()
in assets/views/vue.js
33 18 2