rtk-ai/rtk

Add rtk clang-format filter (summarize reformatted files)

Open

#2,238 opened on 2026年6月3日

GitHub で見る
 (1 comment) (0 reactions) (0 assignees)Rust (2,914 forks)batch import
area:clienhancementhelp wantedpriority:medium

Repository metrics

Stars
 (48,085 stars)
PR merge metrics
 (平均マージ 8d 17h) (30d で 49 merged PRs)

説明

Summary

Add an rtk clang-format filter. clang-format -i is run across many files and its value to the model is essentially binary (which files changed / any errors), not the invocation echo.

Why

rtk discover flagged clang-format as an unhandled command: 52 invocations over 30 days (e.g. clang-format -i <files...>), with no RTK equivalent.

Suggested behavior

  • For -i (in-place): summarize to the list of files reformatted (or "no changes"), surface any parse/error output verbatim.
  • For --dry-run/--Werror: preserve the diagnostics, drop redundant per-file headers when clean.

コントリビューターガイド