Skip to content

fix(cli): honor -vv as trace, repair garbled strings and stale docs - #133

Merged
sims1253 merged 3 commits into
mainfrom
fix/cli-verbosity-messages
Aug 31, 2026
Merged

sims1253 merged 3 commits into
mainfrom
fix/cli-verbosity-messages

Conversation

@sims1253

Copy link
Copy Markdown
Owner

Summary

Small user-facing fixes for the CLI. -vv now 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 in main.rs.

Changes

  • init_tracing maps verbose >= 2 to ry=trace, so -vv honors the help text. -v still selects ry=info; the quiet handling is unchanged. init_tracing also consumes the merged ry.toml verbosity, so both entry paths get the fix.
  • The index.max-file-bytes warning collapses a run of stray interior spaces to single spaces. A scan of main.rs found 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_diagnostics drops the confidence tiebreak. The comparator's outer key already orders by confidence, so the tiebreak can never discriminate.
  • The watch loop collapses three nested if !changed checks into one flat current_paths != all_paths comparison; the length check was implied by the inequality. The crate-level #![allow(clippy::collapsible_if)] stays, because clippy still fails without it on the nested if let stamp loops.
  • The diagnostics-print comment keeps the stdout/stderr contract and drops the change narration.
  • CHANGELOG.md gains two Fixed entries.

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).

@coderabbitai

coderabbitai Bot commented Aug 31, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 58 minutes.

View limit details

Limit 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.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 1869e4d2-caa1-40d3-860e-d31159c3ebc4

📥 Commits

Reviewing files that changed from the base of the PR and between 06693a9 and 5756114.

📒 Files selected for processing (2)
  • CHANGELOG.md
  • crates/ry-cli/src/main.rs

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ No critical issues — one minor doc mismatch inline.

Reviewed changes

  • -vv now maps to ry=trace: the _ arm in init_tracing replaces ry=debug, so -vv honors the clap help promise; -v, the default, and the quiet flags are unchanged, and the ry.toml-merged verbosity path through run_check picks up the same mapping.
  • Oversized-file warning repaired: the index.max-file-bytes message collapses its stray interior space run to single spaces.
  • run_check doc 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: the confidence tiebreak 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 Fixed entries 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.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using openai-compatible/glm-5.3 | 𝕏

Comment thread crates/ry-cli/src/main.rs Resolved
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.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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 -v help text: the clap doc comment (main.rs:83) now reads "Use -v for info, -vv for trace", matching init_tracing's 1 => "ry=info" arm — this resolves the prior inline finding, and the review thread has been closed.
  • Extended the -vv CHANGELOG entry: the Fixed bullet now also documents the help-text correction ("claimed -v selects 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 ### Fixed section 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.

Pullfrog  | View workflow run | Using openai-compatible/glm-5.3 | 𝕏

@sims1253
sims1253 merged commit b1ed33b into main Aug 31, 2026
14 checks passed
@sims1253
sims1253 deleted the fix/cli-verbosity-messages branch August 31, 2026 19:57
sims1253 added a commit that referenced this pull request Nov 7, 2026
r-typeshed #133 makes dim() opaque, like nrow() and ncol(): its
integer/NULL union made if (dim(m)[1L]) report RY001 on a matrix.

Refs #866
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant