chore(lint): delete unused variables and parameters; enforce both rules repo-wide - #8554
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
There was a problem hiding this comment.
All reported issues were addressed across 682 files
Note: This PR contains a large number of files. cubic selects up to 200 of the highest-priority eligible files for this review, so some files may not have been reviewed.
Fix all with cubic | Re-trigger cubic
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
No issues found across 682 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Note: This PR contains a large number of files. cubic selects up to 200 of the highest-priority eligible files for this review, so some files may not have been reviewed.
Re-trigger cubic
f869f90 to
5f74ccd
Compare
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
No issues found across 682 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Note: This PR contains a large number of files. cubic selects up to 200 of the highest-priority eligible files for this review, so some files may not have been reviewed.
Re-trigger cubic
Remove dead locals, constants, helpers, test mock aliases, and unused function parameters (updating callers), drop the unused BlockConfig type parameter and the response types that only fed it.
…meters repo-wide
Enable both rules as errors at the root with no autofix, so bun run lint
never mass-renames bindings to _x, and ignoreRestSiblings so the
{ a, ...rest } omit idiom stays legal. The packages/** override is now
redundant and removed. Document the rule in CLAUDE.md.
…tale run-options note
5f74ccd to
75815d0
Compare
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
No issues found across 681 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Note: This PR contains a large number of files. cubic selects up to 200 of the highest-priority eligible files for this review, so some files may not have been reviewed.
Re-trigger cubic
Summary
catch (e)bindings →catch {}BlockConfig<T>type parameter (it never appeared in the interface body); blocks now write plainBlockConfigas the skills already saynoUnusedVariablesandnoUnusedFunctionParametersas errors repo-wide withfix: "none"sobun run lint's unsafe autofix can't silently_-prefix bindings;ignoreRestSiblingskeeps theconst { a, ...rest }omit idiom. Redundantpackages/**override removed_prefixes remain only on parameters that must hold their position (route handlers using a later arg, connector/tool callbacks); nobiome-ignoreexecutewhose result was unused)Type of Change
Testing
bun run lint,bunx turbo run type-check,bun run check:audits, rootbun run test(test:scripts + every workspace suite)Checklist
test-auditauthoring gate)🤖 Generated with Claude Code