microsoft / vsts-extension-integer-control
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 232 lines of code in units (64.8% of code).
    • 0 very long units (0 lines of code)
    • 2 long units (124 lines of code)
    • 1 medium size units (23 lines of code)
    • 2 small units (28 lines of code)
    • 14 very small units (57 lines of code)
0% | 53% | 9% | 12% | 24%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js0% | 100% | 0% | 0% | 0%
ts0% | 33% | 14% | 17% | 35%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT0% | 100% | 0% | 0% | 0%
scripts0% | 33% | 14% | 17% | 35%
Alternative Visuals
Longest Units
Top 19 longest units
Unit# linesMcCabe index# params
70 1 1
private _init()
in scripts/view.ts
54 6 0
private _initialize()
in scripts/control.ts
23 1 0
constructor()
in scripts/errorView.ts
17 1 1
private _updateInternal()
in scripts/control.ts
11 1 1
$()
in scripts/app.ts
8 4 1
public setCurrentValue()
in scripts/model.ts
6 2 1
private _inputChanged()
in scripts/view.ts
6 2 0
public decrementValue()
in scripts/model.ts
5 2 0
private _update()
in scripts/control.ts
4 1 1
public update()
in scripts/view.ts
4 1 1
constructor()
in scripts/control.ts
3 1 0
private _handleError()
in scripts/control.ts
3 1 1
public updateExternal()
in scripts/control.ts
3 1 1
public getFieldName()
in scripts/control.ts
3 1 0
constructor()
in scripts/model.ts
3 1 1
public incrementValue()
in scripts/model.ts
3 1 0
public getCurrentValue()
in scripts/model.ts
3 1 0
constructor()
in scripts/view.ts
3 1 4