rtk-ai/rtk

Add rtk clang-format filter (summarize reformatted files)

Open

#2238 aperta il 3 giu 2026

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)Rust (2914 fork)batch import
area:clienhancementhelp wantedpriority:medium

Metriche repository

Star
 (48.085 star)
Metriche merge PR
 (Merge medio 8g 17h) (49 PR mergiate in 30 g)

Descrizione

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.

Guida contributor