microsoft / generator-azuresfcontainer
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 19 units with 288 lines of code in units (86.7% of code).
    • 1 very long units (152 lines of code)
    • 0 long units (0 lines of code)
    • 1 medium size units (34 lines of code)
    • 2 small units (27 lines of code)
    • 15 very small units (75 lines of code)
52% | 0% | 11% | 9% | 26%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js52% | 0% | 11% | 9% | 26%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
generators/guestcontainer72% | 0% | 16% | 0% | 11%
generators/app0% | 0% | 0% | 44% | 55%
generators/AddService0% | 0% | 0% | 40% | 59%
generators0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 19 longest units
Unit# linesMcCabe index# params
writing()
in generators/guestcontainer/index.js
152 16 0
async prompting()
in generators/guestcontainer/index.js
34 1 0
async prompting()
in generators/app/index.js
16 1 0
constructor()
in generators/AddService/index.js
11 2 2
constructor()
in generators/guestcontainer/index.js
10 1 2
validateFQN: function()
in generators/utility.js
8 2 1
async prompting()
in generators/AddService/index.js
7 1 0
end()
in generators/app/index.js
7 2 0
writing()
in generators/AddService/index.js
6 1 0
writing()
in generators/app/index.js
6 1 0
_assert()
in generators/guestcontainer/index.js
6 2 2
constructor()
in generators/app/index.js
4 1 2
initializing()
in generators/guestcontainer/index.js
4 1 0
end()
in generators/AddService/index.js
3 1 0
, validate: function()
in generators/app/index.js
3 2 1
_isOptionSet()
in generators/guestcontainer/index.js
3 1 1
capitalizeFirstLetter: function()
in generators/utility.js
3 1 1
uncapitalizeFirstLetter: function()
in generators/utility.js
3 1 1
configuring()
in generators/guestcontainer/index.js
2 1 0