deprecate: replace --tidy-review/--format-review with --pr-review#377
Conversation
- add `--pr-review` to control posting PR reviews - make `--tidy-review`/`--format-review` aliases of `--pr-review` for backward compatibility resolves #375
|
Warning Review limit reached
More reviews will be available in 41 minutes and 53 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughTwo separate CLI flags ( ChangesPR Review Flag Unification
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #377 +/- ##
==========================================
- Coverage 92.43% 92.41% -0.02%
==========================================
Files 23 23
Lines 3646 3637 -9
==========================================
- Hits 3370 3361 -9
Misses 276 276 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
cpp-linter/tests/reviews.rs (1)
218-231: ⚡ Quick winAdd explicit tests for deprecated
--tidy-review/--format-reviewaliases.The suite now validates only
--pr-review, so backward-compatibility paths for legacy flags are untested. Adding a small pair of alias-driven cases would prevent regressions in the deprecation path.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@cpp-linter/tests/reviews.rs` around lines 218 - 231, The test suite in reviews.rs only validates the new --pr-review flag but does not test the deprecated --tidy-review and --format-review aliases, leaving backward-compatibility paths untested. Add two additional test cases that use the deprecated --tidy-review and --format-review flags respectively (either replacing or alongside --pr-review in the args vector construction) to ensure these legacy flags continue to work correctly and prevent regressions in the deprecation path.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@cpp-linter/src/cli/mod.rs`:
- Around line 509-521: The pr_review field in the CLI argument configuration has
removed the short form flags (-d and -m), breaking backward compatibility for
existing scripts and workflows. To fix this, add support for the deprecated
short form flags in the pr_review argument definition. Update the aliases
configuration or add an additional short-form mapping mechanism to maintain
backward compatibility with the legacy -d and -m short flags that were
previously supported, while keeping the existing long form aliases
(format-review, tidy-review) intact.
---
Nitpick comments:
In `@cpp-linter/tests/reviews.rs`:
- Around line 218-231: The test suite in reviews.rs only validates the new
--pr-review flag but does not test the deprecated --tidy-review and
--format-review aliases, leaving backward-compatibility paths untested. Add two
additional test cases that use the deprecated --tidy-review and --format-review
flags respectively (either replacing or alongside --pr-review in the args vector
construction) to ensure these legacy flags continue to work correctly and
prevent regressions in the deprecation path.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: CHILL
Plan: Pro
Run ID: 2c11ffd3-6577-4a80-b007-ec7ffee8dc81
📒 Files selected for processing (6)
cpp-linter/src/clang_tools/clang_tidy.rscpp-linter/src/cli/mod.rscpp-linter/src/cli/structs.rscpp-linter/src/rest_client.rscpp-linter/src/run.rscpp-linter/tests/reviews.rs
💤 Files with no reviewable changes (1)
- cpp-linter/src/clang_tools/clang_tidy.rs
--pr-reviewto control posting PR reviews--tidy-review/--format-reviewaliases of--pr-reviewfor backward compatibilityresolves #375
Summary by CodeRabbit
--pr-reviewflag, replacing separate review toggles for better user clarity and simpler command-line setup.--tidy-reviewand--format-reviewflags remain available as backward-compatible aliases to ensure existing workflows continue without interruption.