microsoft / Angara
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 241 lines of code in units (20.7% of code).
    • 1 very long units (113 lines of code)
    • 0 long units (0 lines of code)
    • 1 medium size units (27 lines of code)
    • 4 small units (62 lines of code)
    • 7 very small units (39 lines of code)
46% | 0% | 11% | 25% | 16%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js80% | 0% | 19% | 0% | 0%
ts0% | 0% | 0% | 61% | 38%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT100% | 0% | 0% | 0% | 0%
src/Angara.Html0% | 0% | 100% | 0% | 0%
src/Angara.Html/Scripts0% | 0% | 0% | 61% | 38%
Alternative Visuals
Longest Units
Top 13 longest units
Unit# linesMcCabe index# params
113 1 1
function updateConsole()
in src/Angara.Html/console.js
27 5 0
export var Show = function()
in src/Angara.Html/Scripts/Primitive.ts
17 7 2
export var Show = function()
in src/Angara.Html/Scripts/Record.ts
17 4 2
var describeContent = function()
in src/Angara.Html/Scripts/Angara.Show.ts
16 9 2
var buildItemHtml = function()
in src/Angara.Html/Scripts/Seq.ts
12 2 3
var endsWith = function()
in src/Angara.Html/Scripts/Angara.Show.ts
9 6 2
var errFailedToLoad = function()
in src/Angara.Html/Scripts/Angara.Show.ts
6 2 2
require()
in src/Angara.Html/Scripts/Angara.Show.ts
6 1 2
export var Show = function()
in src/Angara.Html/Scripts/Seq.ts
6 2 2
export var Show = function()
in src/Angara.Html/Scripts/Angara.Show.ts
5 1 2
require()
in src/Angara.Html/Scripts/Angara.Show.ts
4 2 2
var descr = function()
in src/Angara.Html/Scripts/Angara.Show.ts
3 1 2