microsoft / spring-todo-app
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 13 units with 88 lines of code in units (43.3% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 0 medium size units (0 lines of code)
    • 3 small units (37 lines of code)
    • 10 very small units (51 lines of code)
0% | 0% | 0% | 42% | 57%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js0% | 0% | 0% | 42% | 57%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
static/Scripts0% | 0% | 0% | 42% | 57%
Alternative Visuals
Longest Units
Top 13 longest units
Unit# linesMcCabe index# params
$scope.add = function()
in src/main/resources/static/Scripts/todoListCtrl.js
15 1 0
$scope.editSwitch = function()
in src/main/resources/static/Scripts/todoListCtrl.js
11 2 1
$scope.update = function()
in src/main/resources/static/Scripts/todoListCtrl.js
11 1 1
$scope.delete = function()
in src/main/resources/static/Scripts/todoListCtrl.js
10 1 1
$scope.populate = function()
in src/main/resources/static/Scripts/todoListCtrl.js
8 1 0
$scope.finishSwitch = function()
in src/main/resources/static/Scripts/todoListCtrl.js
7 1 1
deleteItem: function()
in src/main/resources/static/Scripts/todoListSvc.js
6 1 1
function getUser()
in src/main/resources/static/Scripts/todoListCtrl.js
5 2 0
$scope.isActive = function()
in src/main/resources/static/Scripts/homeCtrl.js
3 1 1
getItems: function()
in src/main/resources/static/Scripts/todoListSvc.js
3 1 0
getItem: function()
in src/main/resources/static/Scripts/todoListSvc.js
3 1 1
postItem: function()
in src/main/resources/static/Scripts/todoListSvc.js
3 1 1
putItem: function()
in src/main/resources/static/Scripts/todoListSvc.js
3 1 1