Require panic documentation - #653
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (8)
🔗 Linked repositories identifiedCodeRabbit considers these linked repositories for cross-repo context during reviews:
Included review availability: 3 reviews are currently available. Based on recent review activity, included reviews refill at 4 per hour. Summary
WalkthroughThe workspace now denies missing panic documentation. Selected examples inherit the lint configuration. The todo CLI adds contextual output errors and safer UTF-8 parsing. ChangesRust lint enforcement and remediation
Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 15 | ❌ 5❌ Failed checks (5 inconclusive)
✅ Passed checks (15 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0658a68f75
ℹ️ 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".
29c003b to
d63b0fb
Compare
|
@coderabbitai review |
✅ Action performedReview finished.
|
Convert the affected `#[test]` and `#[rstest]` cases from fallible `Result` tests to explicit panicking test boundaries. Enable Clippy's test-aware panic and expect policy, and remove only the expectations that Clippy reports as stale. Keep the checker recognition unambiguous by placing `#[test]` directly on serial tests.
Deny `missing_panics_doc` across the workspace so public APIs document their panicking contracts alongside the existing rustdoc policy.
Opt every example crate into the workspace lint policy and repair the violations that this exposes. Allow the serial cargo-spawning compile tests to complete on cold caches without relaxing their individual timeout policy.
Keep the target branch's module documentation and local imports after the rebase so the workspace discovery tests retain their required scope.
d63b0fb to
4921566
Compare
Deny
missing_panics_docacross the workspace so public APIs documenttheir panicking contracts alongside the existing rustdoc policy.
Stack created with GitHub Stacks CLI • Give Feedback 💬
References
Summary by Sourcery
Enforce panic documentation across the workspace while removing avoidable panics and improving example error handling.
Bug Fixes:
Enhancements:
Documentation:
Tests: