aws-samples / aws-lex-net-chatbot
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 201 units with 2,316 lines of code in units (20.3% of code).
    • 1 very long units (418 lines of code)
    • 0 long units (0 lines of code)
    • 22 medium size units (661 lines of code)
    • 32 small units (452 lines of code)
    • 146 very small units (785 lines of code)
18% | 0% | 28% | 19% | 33%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js19% | 0% | 27% | 19% | 33%
cs0% | 0% | 42% | 18% | 38%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Code/dotnetLexChatBot/wwwroot19% | 0% | 27% | 19% | 33%
Code/dotnetLexChatBot/Controllers0% | 0% | 61% | 18% | 20%
Code/dotnetLexChatBot0% | 0% | 47% | 23% | 29%
Code/dotnetLexChatBot/Data0% | 0% | 30% | 17% | 52%
Code/dotnetLexChatBot/Extensions0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
module.exports = function()
in Code/dotnetLexChatBot/wwwroot/lib/bootstrap/Gruntfile.js
418 8 1
Tooltip.prototype.show = function()
in Code/dotnetLexChatBot/wwwroot/lib/bootstrap/js/tooltip.js
50 21 0
Carousel.prototype.slide = function()
in Code/dotnetLexChatBot/wwwroot/lib/bootstrap/js/carousel.js
43 11 2
Modal.prototype.show = function()
in Code/dotnetLexChatBot/wwwroot/lib/bootstrap/js/modal.js
41 8 1
Tokenizer.prototype._shift = function()
in Code/dotnetLexChatBot/wwwroot/lib/bootstrap/grunt/bs-lessdoc-parser.js
41 10 0
Modal.prototype.backdrop = function()
in Code/dotnetLexChatBot/wwwroot/lib/bootstrap/js/modal.js
37 16 1
public async Task GetChatMessage()
in Code/dotnetLexChatBot/Controllers/HelloChatBotController.cs
37 6 1
Tab.prototype.show = function()
in Code/dotnetLexChatBot/wwwroot/lib/bootstrap/js/tab.js
32 6 0
Collapse.prototype.show = function()
in Code/dotnetLexChatBot/wwwroot/lib/bootstrap/js/collapse.js
30 13 0
Affix.prototype.checkPosition = function()
in Code/dotnetLexChatBot/wwwroot/lib/bootstrap/js/affix.js
30 11 0
function walkAsync()
in Code/dotnetLexChatBot/wwwroot/lib/bootstrap/grunt/change-version.js
29 7 4
ScrollSpy.prototype.refresh = function()
in Code/dotnetLexChatBot/wwwroot/lib/bootstrap/js/scrollspy.js
28 8 0
function next()
in Code/dotnetLexChatBot/wwwroot/lib/bootstrap/js/tab.js
28 4 0
Tooltip.prototype.applyPlacement = function()
in Code/dotnetLexChatBot/wwwroot/lib/bootstrap/js/tooltip.js
27 8 2
Tooltip.prototype.init = function()
in Code/dotnetLexChatBot/wwwroot/lib/bootstrap/js/tooltip.js
26 12 3
Dropdown.prototype.toggle = function()
in Code/dotnetLexChatBot/wwwroot/lib/bootstrap/js/dropdown.js
25 6 1
ScrollSpy.prototype.process = function()
in Code/dotnetLexChatBot/wwwroot/lib/bootstrap/js/scrollspy.js
25 11 0
Tooltip.prototype.getViewportAdjustedDelta = function()
in Code/dotnetLexChatBot/wwwroot/lib/bootstrap/js/tooltip.js
24 9 4
public void Configure()
in Code/dotnetLexChatBot/Startup.cs
24 2 2
Alert.prototype.close = function()
in Code/dotnetLexChatBot/wwwroot/lib/bootstrap/js/alert.js
21 9 1