Skip to content

fix: remove unused variables and biome-ignore suppressions#1955

Open
Felipeness wants to merge 1 commit intoopenstatusHQ:mainfrom
Felipeness:fix/remove-biome-ignore-unused-vars
Open

fix: remove unused variables and biome-ignore suppressions#1955
Felipeness wants to merge 1 commit intoopenstatusHQ:mainfrom
Felipeness:fix/remove-biome-ignore-unused-vars

Conversation

@Felipeness
Copy link

Summary

Focused first step toward resolving #826. This PR removes biome-ignore lint/correctness/noUnusedVariables suppressions by deleting the underlying dead code instead of silencing the lint rule.

  • packages/db/src/schema/monitors/validation.ts: Remove unused stringToArrayProcess function (empty body, had a TODO but was never implemented or called)
  • apps/web/src/app/api/checker/cron/_cron.ts: Remove unused req parameter from the cron function signature, along with the now-unnecessary NextRequest import
  • apps/web/src/app/api/checker/cron/{1m,5m,10m,30m,30s,1h}/route.ts: Stop passing req to cron() since the parameter was removed

What's NOT in this PR

The examples.ts file in packages/tinybird/src/audit-log/ also has noUnusedVariables suppressions, but those are on intentionally-defined example/scratch functions with commented-out calls — removing them would defeat the file's purpose. Skipped to keep this PR conservative.

Other biome-ignore categories (noArrayIndexKey, useExhaustiveDependencies, noForEach, etc.) will follow in separate PRs to keep reviews small and focused.

Test plan

  • Verify the cron routes still compile and work correctly (the req parameter was never read inside cron())
  • Verify validation.ts still exports all needed schemas (the removed function was dead code with an empty body)

Remove dead code that was being suppressed by biome-ignore
lint/correctness/noUnusedVariables and noUnusedImports directives.
Instead of suppressing the lint warning, the unused code is deleted.

- Remove unused `stringToArrayProcess` function from monitors/validation.ts
- Remove unused `req` parameter from cron function and all 6 call sites
- Remove now-unnecessary `NextRequest` import from _cron.ts

Ref openstatusHQ#826
@vercel
Copy link

vercel bot commented Mar 9, 2026

@Felipeness is attempting to deploy a commit to the OpenStatus Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant