#clang-format #linter #clang-tidy #github

bin+lib cpp-linter

Run clang-format and clang-tidy on a batch of files

12 releases

2.0.0-rc9 Nov 27, 2024
2.0.0-rc8 Nov 24, 2024
2.0.0-rc5 Sep 29, 2024
2.0.0-rc12 Dec 12, 2024

#1454 in Development tools

Download history 298/week @ 2024-09-17 168/week @ 2024-09-24 32/week @ 2024-10-01 2/week @ 2024-10-08 4/week @ 2024-10-15 1/week @ 2024-10-29 2/week @ 2024-11-05 336/week @ 2024-11-19 222/week @ 2024-11-26 1/week @ 2024-12-03 339/week @ 2024-12-10 8/week @ 2024-12-17

348 downloads per month

MIT license

200KB
4.5K SLoC

cpp-linter

This crate contains the the library used as a backend for the cpp-linter binary executable. The main focus of cpp-linter is as follows:

  • Lint C/C++ sources using clang-format and clang-tidy.
  • Respect file changes when run in a CI workflow on Github.
  • Provide feedback via Github's REST API in the any of the following forms:
    • step summary
    • thread comments
    • file annotation
    • pull request review suggestions

Since the cpp-linter python package now uses this library as a binding, the native binary's main() behavior is also present in this library (see run::run_main()).

See also the CLI document hosted on github.

Dependencies

~20–37MB
~636K SLoC