CI tsc step swallows type errors with '|| true' #57
Labels
No labels
blocked:lint-failed
blocked:needs-decision
blocked:no-changes
bug
feature-request
in-progress
milestone
ops-task
quickfix
security/high
test-coverage
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/chainbound#57
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In .forgejo/workflows/ci.yml the step
npx tsc --noEmit 2>&1 || truenever fails the build — the|| truediscards all type errors. The subsequentnpm run builddoes runtsc -bso type errors are caught there eventually, but the explicit tsc check is dead code and gives a false sense of coverage. Remove the|| trueso the step actually enforces types.npx tsc --noEmittypecheck 0 files #58