Add governed Clippy policy baseline, MSRV→1.93, and xtask lint-policy check#261
Add governed Clippy policy baseline, MSRV→1.93, and xtask lint-policy check#261EffortlessSteven wants to merge 1 commit into
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Rate limit exceeded
To continue reviewing without waiting, purchase usage credits in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (121)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Not auto-merging in this PR review pass — this is a substantial policy change that should land deliberately:
Recommend: split into a "scaffold only" PR (policy ledgers + xtask check + docs, with Also see #262 which appears to be a near-duplicate of the policy scaffolding part of this PR — pick one. Generated by Claude Code |
Motivation
1.93so planned Clippy flips can be tracked and staged predictably across the estate.xtaskgate so exceptions and test carveouts are visible and auditable.Description
1.93and added a workspace-level lint baseline under[workspace.lints.rust]and[workspace.lints.clippy]inCargo.tomlto encode the panic-free, AST/string/index-safety, silent-failure, async/unsafe, numeric, and suppression-governance rules.policy/ledgers:policy/clippy-lints.toml(machine-readable active + planned lints + msrv),policy/clippy-debt.toml(debt ledger),policy/no-panic-allowlist.tomlandpolicy/non-rust-allowlist.toml(structured allowlists), anddocs/CLIPPY_POLICY.mddocumenting the policy and suppression style.xtaskgating: newxtask/src/lint_policy.rsplus aCheckLintPolicysubcommand wired intoxtask/src/main.rsascargo xtask check-lint-policy, which validates MSRV alignment, workspace inheritance ([lints] workspace = true), forbidden test-carveouts inclippy.toml, planned flips vs msrv, and debt entry shape.[lints] workspace = trueinto crate manifests and adjustedclippy.tomland docs to align toolchain and MSRV; leftunsafe_codestaged aswarnto acknowledge existing reviewed unsafe/FFI/RT lanes to be tracked as debt rather than immediately forbidding them.Testing
cargo +1.93.0 xtask check-lint-policywhich succeeded and reported the new policy as coherent.cargo +1.93.0 check -p xtaskwhich compiled the xtask checks successfully.rustfmt --check xtask/src/main.rs xtask/src/lint_policy.rswhich passed.cargo +1.93.0 fmt --all -- --checkfailed due to existing workspace-wide formatting diffs (pre-existing, unrelated to the xtask and policy files).cargo +1.93.0 clippy -p xtask -- -D warningssurfaced existing repository debt (crate-level#[allow]usage, missing# Errorsdocs, arithmetic/indexing/string-slicing lints, and other items) and therefore failed; these are expected and must be addressed in follow-up cleanup/staged PRs.Codex Task