Skip to content

ci(clippy): enable cargo clippy with -D warnings#1579

Merged
fengmk2 merged 4 commits into
mainfrom
ci/enable-clippy
May 14, 2026
Merged

ci(clippy): enable cargo clippy with -D warnings#1579
fengmk2 merged 4 commits into
mainfrom
ci/enable-clippy

Conversation

@Boshen
Copy link
Copy Markdown
Member

@Boshen Boshen commented May 14, 2026

Closes #622

Summary

  • Port clippy lint configuration from rolldown (.clippy.toml) into vite-plus
  • Add workspace-level allow overrides in Cargo.toml for pedantic/nursery/cargo noise the project intentionally tolerates
  • Enable cargo clippy --all-targets --all-features -- -D warnings in the lint CI job (previously commented out)
  • Suppress legacy violations of the enforced disallowed_* / print_stdout rules at crate roots via #![allow(...)]; existing in-place fixes (uninlined_format_args, collapsible_if, mul_add, f64::from, etc.) round out the rest

🤖 Generated with Claude Code

@netlify
Copy link
Copy Markdown

netlify Bot commented May 14, 2026

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit cd425f2
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a05a965a8b0350008310db0

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cd77df4d41

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Cargo.toml
Boshen and others added 4 commits May 14, 2026 18:52
Port clippy lint configuration from rolldown and turn the lint step on
in CI so future warnings fail the build. Existing legacy violations of
the disallowed_* / print_stdout rules are suppressed at the crate root
via `#![allow(...)]`, keeping enforcement available for new code in
clean crates.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- Drop stale dashmap entry under rolldown_devtools (upstream removed it)
- vp check --fix yaml formatting in ci.yml

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Boshen Boshen force-pushed the ci/enable-clippy branch from 215bf7f to cd425f2 Compare May 14, 2026 10:52
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cd425f2211

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Cargo.toml
@fengmk2 fengmk2 merged commit 5a40c19 into main May 14, 2026
53 checks passed
@fengmk2 fengmk2 deleted the ci/enable-clippy branch May 14, 2026 12:16
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.

enable cargo clippy again

2 participants