angular / angular-update-guide
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 229 lines of code in units (5.3% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (56 lines of code)
    • 2 medium size units (98 lines of code)
    • 0 small units (0 lines of code)
    • 12 very small units (75 lines of code)
0% | 24% | 42% | 0% | 32%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 24% | 42% | 0% | 32%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/app0% | 24% | 42% | 0% | 32%
Alternative Visuals
Longest Units
Top 15 longest units
Unit# linesMcCabe index# params
showUpdatePath()
in src/app/app.component.ts
56 19 0
windows: isWindows()
in src/app/app.component.ts
50 1 0
renderPreV6Instructions()
in src/app/app.component.ts
48 5 0
export function getLocalizedAction()
in src/app/localization.ts
10 4 2
export function getLocalizedLabel()
in src/app/localization.ts
10 4 2
getAdditionalDependencies()
in src/app/app.component.ts
9 3 1
getAngularVersion()
in src/app/app.component.ts
9 2 1
replaceVariables()
in src/app/app.component.ts
9 2 1
copyCode()
in src/app/app.component.ts
5 2 2
setLocale()
in src/app/app.component.ts
5 1 1
log()
in src/app/app.component.ts
4 1 1
function isWindows()
in src/app/app.component.ts
4 2 0
export function registerLocalization()
in src/app/localization.ts
4 1 3
send()
in src/app/analytics.service.ts
3 1 2
getVersion()
in src/app/app.component.ts
3 1 1