aws-samples / 1click-hpc
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 37 units with 484 lines of code in units (6.5% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (76 lines of code)
    • 6 medium size units (176 lines of code)
    • 9 small units (131 lines of code)
    • 21 very small units (101 lines of code)
0% | 15% | 36% | 27% | 20%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js0% | 15% | 36% | 27% | 20%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
enginframe0% | 15% | 36% | 27% | 20%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
editUserDialog: function()
in enginframe/hydrogen.manage-users.js
76 14 10
jQuery()
in enginframe/hydrogen.manage-users.js
40 1 1
dialogButtons[buttonLabel] = function()
in enginframe/hydrogen.manage-users.js
35 7 0
tagItDialog: function()
in enginframe/hydrogen.manage-users.js
34 4 7
goImportUsers: function()
in enginframe/hydrogen.manage-users.js
23 1 0
importUsersDialog: function()
in enginframe/hydrogen.manage-users.js
23 2 5
goRegisterUser: function()
in enginframe/hydrogen.manage-users.js
21 1 0
goEdit: function()
in enginframe/hydrogen.manage-users.js
19 1 6
groups: function()
in enginframe/hydrogen.manage-users.js
18 4 3
beforeTagAdded: function()
in enginframe/hydrogen.manage-users.js
15 4 2
beforeTagAdded: function()
in enginframe/hydrogen.manage-users.js
15 4 2
isAdmin: function()
in enginframe/hydrogen.manage-users.js
14 3 3
goEditGroups: function()
in enginframe/hydrogen.manage-users.js
14 1 1
tagIt: function()
in enginframe/hydrogen.manage-users.js
13 1 5
jQuery()
in enginframe/hydrogen.manage-users.js
12 4 1
dialogButtons[buttonLabel] = function()
in enginframe/hydrogen.manage-users.js
11 4 0
source: function()
in enginframe/hydrogen.manage-users.js
10 1 2
dialogButtons[buttonLabel] = function()
in enginframe/hydrogen.manage-users.js
10 3 0
jQuery()
in enginframe/hydrogen.manage-users.js
9 4 1
jQuery()
in enginframe/hydrogen.manage-users.js
9 3 1