A package for linting C/C++ code with clang-tidy and/or clang-format to collect feedback provided in the form of thread comments, a step summary, file annotations and pull request review suggestions.
Website | Documentation | Get started | Discussions
Warning
This project (cpp-linter v2) is in release candidates. Please use the pure python cpp-linter package until 2.0 is released.
This package is available in several programming languages (through their respective package managers).
Until 2.0 is released, crates.io only has release candidates,
so --version is required.
Install from source code hosted at crates.io:
cargo install cpp-linter --version 2.0.0-rc.23 --features bin --locked
Install a pre-compiled binary from GitHub releases:
First install cargo-binstall.
cargo binstall cpp-linter --version 2.0.0-rc.23
Pre-releases are uploaded to test-pypi:
pip install --pre -i https://test.pypi.org/simple/ cpp-linter
Until 2.0 is released, pip install cpp-linter installs the
pure python cpp-linter
package from PyPI.
Install the Node.js binding:
npm -g install @cpp-linter/cpp-linter@next
For usage in a CI workflow, see the cpp-linter/cpp-linter-action repository.
For the description of supported Command Line Interface options, see the CLI documentation.
Using --file-annotations:
Using --thread-comments:
Using --step-summary:
Using --pr-review:
To provide feedback (requesting a feature or reporting a bug) please post to issues. For development setup, see CONTRIBUTING.md.
The scripts and documentation in this project are released under the MIT license.
As for dependencies (that are redistributed by us in binary form) and their licenses, refer to THIRD-PARTY LICENSES.






