emmett2020/cpp-lint-action
cpp-lint-action is a tool used to check C++ code quality in Github workflow.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Maintainedlast commit Apr 8, 2025
- License
- Apache 2.0
Pinned Snippet
uses: emmett2020/cpp-lint-action@f9718ba260b1e693659cb3be84135bef1c8a6360 # v1.0.1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| log-level | Set the log verbose level of cpp-lint-action. Supports: [trace, debug, info, error] | — | info |
| target-revision | Set the target revision of git repository. It usually is the default branch you want to be merged into. If you omit this option, cpp-lint-action will automatically detect this. | — | — |
| enable-comment-on-issue | Whether enable comment on Github issues | — | true |
| enable-pull-request-review | Whether enable Github pull-request review comment | — | false |
| enable-step-summary | Whether enable write step summary to Github action | — | true |
| enable-action-output | Whether enable write output to Github action | — | true |
| disable-errors | Whether disable errors. If errors are disabled, this action will not be failed. You can use this action's output to customize later behavior. | — | false |
| enable-clang-format | Enable clang-format check | — | true |
| enable-clang-format-fastly-exit | Enabel clang-format fastly exit. This means cpp-lint-action will stop clang-format as soon as first file error occurs | — | false |
| clang-format-version | Set the version of clang-format. Don't specify both this option and the clang-format-binary option to avoid ambigous. And the clang-format-${version} must exist in your $PATH | — | — |
| clang-format-binary | Set the full path of clang-format executable binary. Don't spefify both this option and the clang-format-version option to avoid ambigous | — | — |
| clang-format-file-iregex | Set the source file filter for clang-format. | — | — |
| enable-clang-tidy | Enable clang-tidy check | — | true |
| enable-clang-tidy-fastly-exit | Enabel clang-tidy fastly exit. This means cpp-lint-action will stop clang-tidy as soon as first file error occurs | — | false |
| clang-tidy-version | Set the version of clang-tidy. Don't specify both this option and the clang-tidy-binary option to avoid ambigous. And the clang-tidy-${version} must exist in your $PATH | — | — |
| clang-tidy-binary | Set the full path of clang-tidy executable binary. Don't spefify both this option and the clang-tidy-version option to avoid ambigous | — | — |
| clang-tidy-file-iregex | Set the source file filter for clang-tidy. | — | — |
| clang-tidy-database | Same as clang-tidy -p option | — | — |
| clang-tidy-allow-no-checks | Enabel clang-tidy allow_no_check option | — | false |
| clang-tidy-enable-check-profile | Enabel clang-tidy enable_check_profile option | — | false |
| clang-tidy-checks | Same as clang-tidy checks option | — | — |
| clang-tidy-config | Same as clang-tidy config option | — | — |
| clang-tidy-config-file | Same as clang-tidy config-file option | — | — |
| clang-tidy-header-filter | Same as clang-tidy header-filter option | — | — |
| clang-tidy-line-filter | Same as clang-tidy line-filter option | — | — |
Outputs
| name | description |
|---|---|
| clang-tidy-failed-number | An integer of how many file fails on clang-tidy check |
| clang-format-failed-number | An integer of how many file fails on clang-format check |