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 check --statistics prints ruff's statistics JSON instead of its table, larger than ruff's own output #4701
rtk ruff injects --output-format=json into every check run where the user did not pick a format. With --statistics, ruff then prints statistics as JSON ([{"code","name","count","fixable","fixable_count"}]). That is not the diagnostics array filter_ruff_check_json expects, so the JSON comes back as-is: larger than ruff's table and in a different shape.
Reproduction (ruff 0.16.6, LC_ALL=C, 61 files with unused imports and unsorted import blocks):
rtk ruff check --statistics forces JSON output format, which bypasses the statistics table filter and prints larger, wrongly-shaped JSON instead of ruff's compact table.
This looks like a simple fix that could be auto-resolved. Repo maintainers can use /wshm fix to attempt it.
📁 Relevant files
src/filters/ruff.rs
Suggested Actions
Skip injecting --output-format=json when --statistics is present among the args
Activity
rtk-wshm-sync-bot commentedon Oct 21, 2026
🔍 Automated Triage
bugmediumSummary
rtk ruff check --statisticsforces JSON output format, which bypasses the statistics table filter and prints larger, wrongly-shaped JSON instead of ruff's compact table.📁 Relevant files
src/filters/ruff.rsSuggested Actions
--output-format=jsonwhen--statisticsis present among the argsrtk ruff --statisticsthrough the same code pathrtk ruff check --statisticsandrtk ruff --statisticsTriaged automatically by wshm · This is an automated analysis, not a human review.
fix(ruff): keep ruff's statistics table for check --statistics
fix(ruff): keep ruff's statistics table for check --statistics