aws-samples / aws-amplify-team-task-tracking
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 153 units with 2,914 lines of code in units (33.2% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (51 lines of code)
    • 55 medium size units (1,634 lines of code)
    • 72 small units (1,083 lines of code)
    • 25 very small units (146 lines of code)
0% | 1% | 56% | 37% | 5%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 1% | 56% | 37% | 5%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/app/dashboard0% | 22% | 76% | 0% | 1%
src/app0% | 0% | 51% | 45% | 2%
src/graphql0% | 0% | 61% | 34% | 3%
src/app/weeklytasks0% | 0% | 44% | 39% | 16%
src/app/goals0% | 0% | 44% | 39% | 16%
src/app/monthlytasks0% | 0% | 43% | 39% | 16%
src/app/overview0% | 0% | 100% | 0% | 0%
src/app/auth0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
async ngOnInit()
in src/app/dashboard/dashboard.component.ts
51 4 0
async populateMissingReminders()
in src/app/dashboard/dashboard.component.ts
49 1 1
listReminders()
in src/app/API.service.ts
46 1 3
async populateTamGoals()
in src/app/dashboard/dashboard.component.ts
43 1 1
onNewReminders()
in src/app/dashboard/dashboard.component.ts
43 2 0
getTask()
in src/graphql/queries.ts
39 1 1
createTask()
in src/graphql/mutations.ts
39 1 1
updateTask()
in src/graphql/mutations.ts
39 1 1
deleteTask()
in src/graphql/mutations.ts
39 1 1
createDashboardMap()
in src/app/dashboard/dashboard.component.ts
37 4 3
commentAction()
in src/app/weeklytasks/weeklytasks.component.ts
36 3 0
commentAction()
in src/app/goals/goals.component.ts
36 3 0
createMandatoryComment()
in src/app/API.service.ts
35 1 1
updateMandatoryComment()
in src/app/API.service.ts
35 1 1
deleteMandatoryComment()
in src/app/API.service.ts
35 1 1
getMandatoryComment()
in src/app/API.service.ts
35 1 1
commentAction()
in src/app/monthlytasks/monthlytasks.component.ts
35 3 0
createTask()
in src/app/API.service.ts
32 1 1
updateTask()
in src/app/API.service.ts
32 1 1
deleteTask()
in src/app/API.service.ts
32 1 1