microsoft / axe-sarif-converter
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 156 units with 4,058 lines of code in units (327.8% of code).
    • 0 very long units (0 lines of code)
    • 29 long units (1,885 lines of code)
    • 40 medium size units (1,359 lines of code)
    • 34 small units (504 lines of code)
    • 53 very small units (310 lines of code)
0% | 46% | 33% | 12% | 7%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 46% | 33% | 12% | 7%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 46% | 33% | 12% | 7%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
wcag111: standardWcag21Link()
in src/wcag-link-data.ts
79 1 3
wcag121: standardWcag21Link()
in src/wcag-link-data.ts
78 1 3
wcag122: standardWcag21Link()
in src/wcag-link-data.ts
77 1 3
wcag123: standardWcag21Link()
in src/wcag-link-data.ts
76 1 3
wcag124: standardWcag21Link()
in src/wcag-link-data.ts
75 1 3
wcag125: standardWcag21Link()
in src/wcag-link-data.ts
74 1 3
wcag126: standardWcag21Link()
in src/wcag-link-data.ts
73 1 3
wcag127: standardWcag21Link()
in src/wcag-link-data.ts
72 1 3
wcag128: standardWcag21Link()
in src/wcag-link-data.ts
71 1 3
wcag129: standardWcag21Link()
in src/wcag-link-data.ts
70 1 3
wcag131: standardWcag21Link()
in src/wcag-link-data.ts
69 1 3
wcag132: standardWcag21Link()
in src/wcag-link-data.ts
68 1 3
wcag133: standardWcag21Link()
in src/wcag-link-data.ts
67 1 3
wcag134: standardWcag21Link()
in src/wcag-link-data.ts
66 1 3
wcag135: standardWcag21Link()
in src/wcag-link-data.ts
65 1 3
wcag136: standardWcag21Link()
in src/wcag-link-data.ts
64 1 3
wcag141: standardWcag21Link()
in src/wcag-link-data.ts
63 1 3
wcag142: standardWcag21Link()
in src/wcag-link-data.ts
62 1 3
wcag143: standardWcag21Link()
in src/wcag-link-data.ts
61 1 3
wcag144: standardWcag21Link()
in src/wcag-link-data.ts
60 1 3