microsoft / projection-grid
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 511 units with 6,500 lines of code in units (71.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 5 medium complex units (346 lines of code)
    • 39 simple units (1,314 lines of code)
    • 467 very simple units (4,840 lines of code)
0% | 0% | 5% | 20% | 74%
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% | 5% | 20% | 74%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
js/vnext0% | 0% | 14% | 26% | 58%
js/projection0% | 0% | 8% | 49% | 42%
js/layout0% | 0% | 0% | 45% | 54%
js0% | 0% | 0% | 31% | 68%
spec/integrated0% | 0% | 0% | 1% | 98%
spec/unit0% | 0% | 0% | 0% | 100%
js/factory0% | 0% | 0% | 0% | 100%
js/popup-editor0% | 0% | 0% | 0% | 100%
spec/util0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
js/schema0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
update: function()
in js/projection/jsdata.js
57 13 0
initialize()
in js/vnext/grid-view.js
119 13 5
update: function()
in js/projection/column-queryable.js
43 11 1
_hookUpStickyHeader()
in js/vnext/layout/table-view.js
59 11 1
constructor()
in js/vnext/projection/column-group.js
68 11 1
dataFor: function()
in js/layout/table.js
41 10 1
update: function()
in js/layout/table.js
45 10 1
update: function()
in js/projection/column-group.js
42 10 1
update: function()
in js/projection/editable.js
42 10 1
update: function()
in js/projection/odata.js
52 10 0
update: function()
in js/projection/row-checkbox.js
69 10 1
update: function()
in js/projection/row.js
62 10 1
beforeSet: function()
in js/projection/editable.js
28 9 1
query()
in js/vnext/data-source/memory.js
34 9 1
function pugEscape()
in js/vnext/layout/escape.js
27 9 1
_normalizeHeaderConfig()
in js/vnext/layout/table-view.js
18 9 1
update: function()
in js/projection/editable-string.js
27 8 1
normalizeOrderBy()
in js/vnext/data-source/base.js
29 8 1
export function normalizeClasses()
in js/vnext/projection/common.js
19 8 2
selectable: selectable()
in js/vnext/projection/selection.js
17 8 1