Repository navigation
fix(cli): honor -vv as trace, repair garbled strings and stale docs - #133
Conversation
|
Warning Review limit reachedNext included review available in 58 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
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 |
There was a problem hiding this comment.
ℹ️ No critical issues — one minor doc mismatch inline.
Reviewed changes
-vvnow maps tory=trace: the_arm ininit_tracingreplacesry=debug, so-vvhonors the clap help promise;-v, the default, and the quiet flags are unchanged, and thery.toml-merged verbosity path throughrun_checkpicks up the same mapping.- Oversized-file warning repaired: the
index.max-file-bytesmessage collapses its stray interior space run to single spaces. run_checkdoc comment rewritten: now describes config merge + discovery + check/watch instead of the exclude-matching text that lives elsewhere.- Dead tiebreak removed in
sort_and_deduplicate_diagnostics: theconfidencetiebreak sat behind an outer key that already orders by confidence, so it could never discriminate — removal is behavior-preserving. - Watch-loop simplification: three nested change checks collapse to
current_paths != all_paths, which subsumes the length check. - CHANGELOG: two accurate
Fixedentries matching the section's format.
Verified locally: cargo clippy -p ry-cli --all-targets -- -D warnings clean, cargo test -p ry-cli --bins 34/34 passing, and a grep sweep confirms no other garbled double-space strings in main.rs (remaining hits are intentional alignment/indent literals). The watch-loop and comparator refactors are semantically identical to the removed code; no snapshot or ordering behavior changes.
ℹ️ Nitpicks
- None beyond the inline comment.
openai-compatible/glm-5.3 | 𝕏
The help line said "-v for debug", but init_tracing maps one verbose flag to ry=info. Align the help with the actual filter and extend the CHANGELOG bullet to cover it.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Since the prior review (cb4f45d), the delta covers the help-text correction, a CHANGELOG extension, and a merge from main:
- Corrected the
-vhelp text: the clap doc comment (main.rs:83) now reads "Use -v for info, -vv for trace", matchinginit_tracing's1 => "ry=info"arm — this resolves the prior inline finding, and the review thread has been closed. - Extended the
-vvCHANGELOG entry: theFixedbullet now also documents the help-text correction ("claimed-vselects debug; it now says info"), keeping the entry accurate for the combined change. - Merged
origin/main(5756114): brings in #134, #135, #141, #142 (docs/test-side); the PR's net diff is unchanged at the same two files and the merged### Fixedsection is intact.
Verification: the help string matches the filter arms at main.rs:380-384, and repo-wide sweeps for -v for / for debug find no remaining stale verbosity claims outside the corrected line.
openai-compatible/glm-5.3 | 𝕏

Summary
Small user-facing fixes for the CLI.
-vvnow enables the trace tier the help text promises. The oversized-file warning no longer prints stray spaces. This PR also removes stale docs and dead code inmain.rs.Changes
init_tracingmapsverbose >= 2tory=trace, so-vvhonors the help text.-vstill selectsry=info; the quiet handling is unchanged.init_tracingalso consumes the mergedry.tomlverbosity, so both entry paths get the fix.index.max-file-byteswarning collapses a run of stray interior spaces to single spaces. A scan ofmain.rsfound no other strings with interior double spaces.run_check's doc comment now describes what the function does. The old text described exclude matching that lives elsewhere.sort_and_deduplicate_diagnosticsdrops theconfidencetiebreak. The comparator's outer key already orders by confidence, so the tiebreak can never discriminate.if !changedchecks into one flatcurrent_paths != all_pathscomparison; the length check was implied by the inequality. The crate-level#![allow(clippy::collapsible_if)]stays, because clippy still fails without it on the nestedif letstamp loops.CHANGELOG.mdgains twoFixedentries.Verification
cargo fmt -p ry-cli— no changes.cargo clippy -p ry-cli --all-targets -- -D warnings— passes.cargo test -p ry-cli— 92 tests pass, 0 fail (34 unit, 58 integration).