Skip to content

Server Refactor

Server Refactor #62

Triggered via pull request October 29, 2025 20:41
Status Failure
Total duration 27s
Artifacts

quality-checks.yml

on: pull_request
Matrix: lint-and-type-check
Fit to window
Zoom out
Zoom in

Annotations

12 errors and 20 warnings
lint-and-type-check (client): client/src/pages/Profile/AdminEditProfile.tsx#L127
Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator
lint-and-type-check (client): client/src/pages/Profile/AdminEditProfile.tsx#L113
Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator
lint-and-type-check (client): client/src/pages/Profile/AdminEditProfile.tsx#L113
Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator
lint-and-type-check (client): client/src/pages/Profile/AdminEditProfile.tsx#L82
Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator
lint-and-type-check (client): client/src/pages/PastEntries/SurveyEdit.tsx#L61
Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator
lint-and-type-check (client): client/src/pages/PastEntries/SurveyDetails.tsx#L128
Prefer using nullish coalescing operator (`??`) instead of a ternary expression, as it is simpler to read
lint-and-type-check (client): client/src/pages/PastEntries/PastEntries.tsx#L94
Prefer using nullish coalescing operator (`??`) instead of a ternary expression, as it is simpler to read
lint-and-type-check (client): client/src/pages/CompletedSurvey/QrPage.tsx#L27
Prefer using an optional chain expression instead, as it's more concise and easier to read
lint-and-type-check (client): client/src/pages/AdminDashboard/StaffDashboard.tsx#L73
Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator
lint-and-type-check (client): client/src/pages/AdminDashboard/NewUser.tsx#L51
Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator
lint-and-type-check (server)
The strategy configuration was canceled because "lint-and-type-check.client" failed
lint-and-type-check (server)
The operation was canceled.
lint-and-type-check (client): client/src/pages/AdminDashboard/StaffDashboard.tsx#L83
React Hook useEffect has missing dependencies: 'navigate' and 'onLogout'. Either include them or remove the dependency array. If 'onLogout' changes too often, find the parent component that defines it and wrap that definition in useCallback
lint-and-type-check (client): client/src/pages/AdminDashboard/StaffDashboard.tsx#L68
Unexpected any. Specify a different type
lint-and-type-check (client): client/src/pages/AdminDashboard/StaffDashboard.tsx#L67
Unexpected any. Specify a different type
lint-and-type-check (client): client/src/pages/AdminDashboard/StaffDashboard.tsx#L66
Unexpected any. Specify a different type
lint-and-type-check (client): client/src/pages/AdminDashboard/StaffDashboard.tsx#L65
Unexpected any. Specify a different type
lint-and-type-check (client): client/src/pages/AdminDashboard/StaffDashboard.tsx#L64
Unexpected any. Specify a different type
lint-and-type-check (server): server/src/database/survey/mongoose/survey.hooks.ts#L93
Unexpected any. Specify a different type
lint-and-type-check (server): server/src/database/survey/mongoose/survey.hooks.ts#L92
Unexpected any. Specify a different type
lint-and-type-check (server): server/src/database/survey/mongoose/survey.hooks.ts#L36
Unexpected any. Specify a different type
lint-and-type-check (server): server/src/database/survey/mongoose/survey.hooks.ts#L35
Unexpected any. Specify a different type
lint-and-type-check (server): server/src/database/survey/mongoose/survey.hooks.ts#L11
Unexpected any. Specify a different type
lint-and-type-check (server): server/src/database/survey/mongoose/survey.hooks.ts#L11
Unexpected any. Specify a different type
lint-and-type-check (server): server/src/database/seed/mongoose/seed.hooks.ts#L7
Unexpected any. Specify a different type
lint-and-type-check (server): server/src/database/seed/mongoose/seed.hooks.ts#L7
Unexpected any. Specify a different type