You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rtk ruff -- <path> drops the leading --, so rtk ruff -- check lints the whole directory #4702
Commands::Ruff hands its args to ruff_cmd::run without core::args_utils::restore_double_dash, so clap's leading -- is gone before routing. A path after it is then read as the first argument.
Reproduction (ruff 0.16.6, LC_ALL=C, a clean file named check in a directory with 60 dirty modules):
rtk ruff -- <path> loses the leading -- before dispatch, causing the path to be misread and the whole directory linted instead; fix by applying restore_double_dash as other passthrough commands do.
This looks like a simple fix that could be auto-resolved. Repo maintainers can use /wshm fix to attempt it.
📁 Relevant files
src/core/args_utils.rs
src/ruff_cmd.rs
Suggested Actions
Apply restore_double_dash in Commands::Ruff handling before calling ruff_cmd::run, mirroring other passthrough co…
Add a regression test for rtk ruff -- <path> to prevent recurrence
I'd like to pick this up. Plan is to call restore_double_dash in the Commands::Ruff arm like the other passthrough commands, with a failing test for rtk ruff -- check first. Will open a PR against develop.
Activity
rtk-wshm-sync-bot commentedon Oct 21, 2026
🔍 Automated Triage
bugmediumSummary
rtk ruff -- <path>loses the leading--before dispatch, causing the path to be misread and the whole directory linted instead; fix by applyingrestore_double_dashas other passthrough commands do.📁 Relevant files
src/core/args_utils.rssrc/ruff_cmd.rsSuggested Actions
restore_double_dashinCommands::Ruffhandling before callingruff_cmd::run, mirroring other passthrough co…rtk ruff -- <path>to prevent recurrencertk ruffreads the subcommand from fixed positions, so ruff global options makertk ruff --isolated analyze graphtruncate the JSON #4654/rtk ruffcuts SARIF, JUnit, GitLab, JSON Lines andrule --output-format=jsonoutput at the passthrough cap #4655 for shared root cause in arg handlingTriaged automatically by wshm · This is an automated analysis, not a human review.
Yathiskumar commentedon Oct 21, 2026
Reproduced on
develop@5ab62913 (macOS, ruff 0.16.6). With a clean file namedchecknext to 60 modules that each have unused imports:ruff check -- check→All checks passed!, exit 0rtk ruff check -- check→Ruff: No issues found, exit 0rtk ruff -- check→ lints the whole directory, 120 issues, exit 1I'd like to pick this up. Plan is to call
restore_double_dashin theCommands::Ruffarm like the other passthrough commands, with a failing test forrtk ruff -- checkfirst. Will open a PR againstdevelop.fix(ruff): restore a leading -- before routing
chore(upstream): merge 341 commits from rtk-ai/rtk develop (2 Novembe…
chore(upstream): record rtk-ai/rtk develop 22812af as merged so the n…