awslabs / open-data-registry-browser
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 58 units with 760 lines of code in units (50.1% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (65 lines of code)
    • 8 medium size units (266 lines of code)
    • 19 small units (269 lines of code)
    • 30 very small units (160 lines of code)
0% | 8% | 35% | 35% | 21%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js0% | 8% | 35% | 35% | 21%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/js0% | 62% | 0% | 0% | 37%
ROOT0% | 0% | 40% | 41% | 18%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
var isMatch = function()
in src/js/index.js
65 24 2
trimHTML: function()
in gulpfile.js
48 10 2
41 13 1
function htmlDetail()
in gulpfile.js
40 10 0
function jsonMerge()
in gulpfile.js
35 7 1
33 2 0
function htmlASDI()
in gulpfile.js
25 1 1
function htmlCollab()
in gulpfile.js
23 1 1
isAWSURL: function()
in gulpfile.js
21 7 2
function htmlTag()
in gulpfile.js
20 1 1
19 3 1
19 1 1
18 4 2
function yamlTag()
in gulpfile.js
18 1 1
17 2 1
15 5 1
14 6 1
13 1 0
13 1 1
12 1 0