rtk-ai/rtk

Add rtk clang-format filter (summarize reformatted files)

Open

#2,238 建立於 2026年6月3日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)Rust (2,914 fork)batch import
area:clienhancementhelp wantedpriority:medium

倉庫指標

Star
 (48,085 star)
PR 合併指標
 (平均合併 8天 17小時) (30 天內合併 49 個 PR)

描述

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.

貢獻者指南