microsoft / AzureDevOps-WSJF-Extension
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 15 units with 281 lines of code in units (71.3% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (67 lines of code)
    • 4 medium size units (113 lines of code)
    • 4 small units (62 lines of code)
    • 6 very small units (39 lines of code)
0% | 23% | 40% | 22% | 13%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
tsx0% | 23% | 40% | 22% | 13%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 23% | 40% | 22% | 13%
Alternative Visuals
Longest Units
Top 15 longest units
Unit# linesMcCabe index# params
public initialize()
in src/wsjfSettings.tsx
67 3 0
42 5 2
28 7 1
change: function()
in src/wsjfSettings.tsx
22 7 0
execute: function()
in src/wsjf.tsx
21 7 1
private getSortedFieldsList()
in src/wsjfSettings.tsx
18 4 0
17 11 1
15 2 0
onLoaded: function()
in src/wsjf.tsx
12 7 1
private getComboOptions()
in src/wsjfSettings.tsx
10 1 3
private save()
in src/wsjfSettings.tsx
9 1 0
private updateSaveButton()
in src/wsjfSettings.tsx
8 7 0
4 1 0
private getFieldReferenceName()
in src/wsjfSettings.tsx
4 2 1
private getFieldName()
in src/wsjfSettings.tsx
4 2 1