Add governed Clippy policy baseline, policy ledgers, and xtask checker#437
Add governed Clippy policy baseline, policy ledgers, and xtask checker#437EffortlessSteven wants to merge 1 commit intomainfrom
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 ignored due to path filters (1)
📒 Files selected for processing (67)
✨ 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 |
Scope Guard Summary
Change distribution:
Policy evaluation: 💡 Add a |
|
❌ Agents Governance Check Failed Fix the errors reported above. See AGENTS_GOVERNANCE.md for troubleshooting. |
Test Results0 tests 0 ✅ 0s ⏱️ Results for commit d468bc8. |
Motivation
xtaskgate to verify MSRV/lint coherence, deny test carveouts, and fail stale/expired exceptions in CI.Description
rust-versionto1.93and added the strict workspace lint blocks under[workspace.lints.rust]and[workspace.lints.clippy]in the rootCargo.tomlto enforce the panic-free and AST-safe baseline.policy/clippy-lints.toml(active + planned lints ledger),policy/clippy-debt.toml(debt ledger),policy/no-panic-allowlist.toml, andpolicy/non-rust-allowlist.tomlto track exceptions and planned flips.xtaskcommandcheck-lint-policyatcrates/xtask/src/commands/check_lint_policy.rsand wired it into the CLI to validate MSRV alignment, active/planned lint consistency, workspacelintsinheritance, absence of clippy test carveouts, and required fields/expiry for policy/debt/allowlists.clippy.toml(and templates undertemplates/rust/clippy/*) as the place for repo-specific disallowed methods/types/macros (including disallowed std::env methods for unsafe process-global state) and addeddocs/CLIPPY_POLICY.mdplus reusable rollout artifacts intemplates/rust.[lints] workspace = trueto most memberCargo.tomlfiles and preserved remaining gaps as explicit debt entries inpolicy/clippy-debt.toml(notablycrates/testingandcrates/xtask).Testing
cargo +1.93.0 fmt --all, which completed successfully. (passed)cargo +1.93.0 xtask check-lint-policy, which compiled the xtask binary and reportedlint policy is coherent. (passed)cargo +1.93.0 check --workspace --exclude acceptance --exclude adapters-grpc, which completed successfully for the included crates. (passed)cargo +1.93.0 check --workspace --exclude acceptancesurfaced an environment/tooling limitation:adapters-grpcbuild script failed becauseprotoc/protobuf includes (google/protobuf/timestamp.proto) were not available in the environment, which is an external build dependency rather than a lint-policy failure. (observed tooling failure)git diff --cached --checkto validate whitespace/EOF issues and fixed the template EOF; pre-commit checks passed. (passed)Codex Task