awslabs / aws-data-api-ux
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 39 units with 420 lines of code in units (18.2% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 4 medium size units (124 lines of code)
    • 16 small units (202 lines of code)
    • 19 very small units (94 lines of code)
0% | 0% | 29% | 48% | 22%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 0% | 29% | 48% | 22%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/app/stage0% | 0% | 40% | 46% | 12%
src/app/app-interceptors0% | 0% | 0% | 100% | 0%
src/app/security0% | 0% | 0% | 100% | 0%
src/app/app-validators0% | 0% | 0% | 100% | 0%
src/app/app-services0% | 0% | 0% | 31% | 68%
src/app/shared0% | 0% | 0% | 0% | 100%
src/app0% | 0% | 0% | 0% | 100%
src/app/app-guards0% | 0% | 0% | 0% | 100%
src/app/dashboard0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
searchEntities()
in angular/src/app/stage/item-list/item-list.component.ts
43 7 0
pullStatus()
in angular/src/app/stage/namespace-edit/namespace-edit.component.ts
27 3 0
ngOnInit()
in angular/src/app/stage/namespace-details/namespace-details.component.ts
27 1 0
ngOnInit()
in angular/src/app/stage/item-list/item-list.component.ts
27 1 0
intercept()
in angular/src/app/app-interceptors/security.interceptor.ts
20 5 2
ngOnInit()
in angular/src/app/stage/namespace-edit/namespace-edit.component.ts
16 1 0
ngOnInit()
in angular/src/app/security/security-login/security-login.component.ts
15 1 0
export function MustMatchValidator()
in angular/src/app/app-validators/must-match.validator.ts
14 4 2
formOnInit()
in angular/src/app/stage/namespace-edit/namespace-edit.component.ts
12 1 0
setSchemaResource()
in angular/src/app/stage/namespace-details/namespace-details.component.ts
12 1 1
setSchemaMetadata()
in angular/src/app/stage/namespace-details/namespace-details.component.ts
12 1 1
findStage()
in angular/src/app/stage/stage-details/stage-details.component.ts
12 1 1
goPrev()
in angular/src/app/stage/item-list/item-list.component.ts
12 4 0
validateAllFormFields()
in angular/src/app/app-services/form-helper.service.ts
11 3 1
getEntityInfo()
in angular/src/app/stage/namespace-details/namespace-details.component.ts
11 1 0
getEntityUsage()
in angular/src/app/stage/namespace-details/namespace-details.component.ts
11 1 0
getSchemaResource()
in angular/src/app/stage/namespace-details/namespace-details.component.ts
11 1 0
getSchemaMetadata()
in angular/src/app/stage/namespace-details/namespace-details.component.ts
11 1 0
searchEntities()
in angular/src/app/stage/stage-details/stage-details.component.ts
11 1 1
searchEntities()
in angular/src/app/stage/stage-list/stage-list.component.ts
11 1 0