`rtk ruff check --statistics` prints ruff's statistics JSON instead of its table, larger than ruff's own output
Maintainers usually reply within 1 day
@umi008 is already working on this.
Since Oct 21, 2026.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
Research direction
Start by reading the ruff command handling and output filtering paths that inject --output-format=json and process check output; the issue does not name their files, so locate them from the rtk ruff entry point. Reproduce with rtk ruff check --statistics src and compare its output with ruff check --statistics src. Done means statistics output is compact and readable, with the command still returning the expected exit status.
Written by the indexing model from the issue text.
Description
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):
| command | stdout |
|---|---|
ruff check --statistics src |
116 B: 242\tF401\t[*] unused-import, 60\tI001\t[*] unsorted-imports, totals |
rtk ruff check --statistics src (develop 5ab629136) |
248 B of pretty-printed JSON, exit 1 |
#3968 also routes the flag-first spelling rtk ruff --statistics to this path.
Direction: leave --output-format alone when --statistics is present (ruff's table is already compact), or summarise the statistics JSON.
- Dominant language
- Rust
- Stars
- 85k
- Forks
- 5.4k
- Avg merge
- 5d 16h
- Merged PRs (30d)
- 59
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rtk-ai/rtk
-
`rtk dotnet test` counts a project once per output line that names its `.csproj`Possibly taken A pull request linked to this issue is open or already merged. Openarea:cli bug dotnet good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
rtk git show <commit>: truncation hint points to `rtk git diff --no-compact`, which does not show the commitPossibly taken @vshalpnjabi claimed this 1 day ago. Openarea:cli bug good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
rtk-ai/rtk#4817 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
Windows: .hook_warn_last mtime never advances, so the daily hook reminder prints on every commandPossibly taken @ShryukGrandhi claimed this 5 days ago. Openarea:cli bug good first issue platform:windows priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
rtk-ai/rtk#4746 · 2 comments ·
Maintainers usually reply within 1 day
-
test: help_passthrough_fuzz_test opens git's HTML manual pages in the browser on WindowsPossibly taken @viniciusdsandrade claimed this 5 days ago. Openarea:testing bug good first issue platform:windows priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
rtk jira: filtered output keeps trailing line padding — 30-39% of the result is spaces (v1.0.1)Possibly taken @umi008 claimed this 8 days ago. Openarea:cli bug good first issue priority:low
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
Similar issues
-
bug priority: low ui
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
storytold/photocraft#10370 · 1 comment ·
Maintainers usually reply within 1 day
-
area:doc bug in progress needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
bherbruck/solvecraft#9634 · 2 comments · 1 reaction ·
-
inflate: total_in uses plain += on c_ulong (32-bit on Windows), panics in debug for streams > 4 GiBOpen
Difficulty 1/5 Under an hour Newbie friendliness 85/100
trifectatechfoundation/zlib-rs#570 · 1 comment ·
-
bug discord-triage
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
LanternOps/breeze#10755 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
aranya-project/aranya#803 ·