microsoft / generator-azuresfguest
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 18 units with 223 lines of code in units (83.5% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (90 lines of code)
    • 1 medium size units (34 lines of code)
    • 3 small units (38 lines of code)
    • 13 very small units (61 lines of code)
0% | 40% | 15% | 17% | 27%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js0% | 40% | 15% | 17% | 27%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
generators/guestbinary0% | 62% | 23% | 7% | 6%
generators/app0% | 0% | 0% | 44% | 55%
generators/AddService0% | 0% | 0% | 37% | 62%
generators0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 18 longest units
Unit# linesMcCabe index# params
writing()
in generators/guestbinary/index.js
90 8 0
async prompting()
in generators/guestbinary/index.js
34 1 0
async prompting()
in generators/app/index.js
16 1 0
constructor: function()
in generators/AddService/index.js
11 2 0
constructor()
in generators/guestbinary/index.js
11 1 2
prompting: function()
in generators/AddService/index.js
9 1 0
validateFQN: function()
in generators/utility.js
8 2 1
end()
in generators/app/index.js
7 2 0
writing: function()
in generators/AddService/index.js
6 1 0
writing()
in generators/app/index.js
6 1 0
constructor()
in generators/app/index.js
4 1 2
initializing()
in generators/guestbinary/index.js
4 1 0
end: function()
in generators/AddService/index.js
3 1 0
, validate: function()
in generators/app/index.js
3 2 1
_isOptionSet()
in generators/guestbinary/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/guestbinary/index.js
2 1 0