awslabs / aws-sdk-api-changes
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 669 units with 9,870 lines of code in units (84.9% of code).
    • 1 very complex units (942 lines of code)
    • 10 complex units (774 lines of code)
    • 48 medium complex units (1,945 lines of code)
    • 102 simple units (2,363 lines of code)
    • 508 very simple units (3,846 lines of code)
9% | 7% | 19% | 23% | 38%
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% | 8% | 20% | 24% | 36%
py0% | 0% | 15% | 18% | 65%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
assets/js10% | 8% | 20% | 24% | 36%
apichanges0% | 0% | 16% | 15% | 68%
tools0% | 0% | 0% | 100% | 0%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
942 106 2
function parseFilters()
in assets/js/vue.js
66 38 1
function hydrate()
in assets/js/vue.js
81 32 4
function enter()
in assets/js/vue.js
77 32 2
function patchVnode()
in assets/js/vue.js
63 31 6
function processAttrs()
in assets/js/vue.js
118 30 1
function _createElement()
in assets/js/vue.js
79 27 5
function updateDOMProps()
in assets/js/vue.js
50 26 2
render: function render()
in assets/js/vue.js
70 26 1
chars: function chars()
in assets/js/vue.js
65 26 3
105 26 1
function genElement()
in assets/js/vue.js
34 24 2
68 23 2
function addHandler()
in assets/js/vue.js
68 22 8
def diff_model()
in apichanges/model.py
48 22 2
function genData$2()
in assets/js/vue.js
61 21 2
function updateChildren()
in assets/js/vue.js
64 19 5
start: function start()
in assets/js/vue.js
72 19 5
def process()
in apichanges/repo.py
66 19 3
33 18 2