zehmatt/clang-tidy-annotations
Run clang-tidy on your code and annotates the PR with the results
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github_token | Authentication token. | yes | ${{ github.token }} |
| source_dir | Directory containing the source files. | yes | . |
| build_dir | The directory where CMake generated the build (-B). In case compile_commands.json was not found this will bethe directory passed to CMake. | yes | . |
| file_filter | A list of file extensions, files that do not match the filter will not be passed to clang-tidy. | yes | cpp,h,hpp,c,cc,cxx,hxx |
| only_affected_lines | Only annotates lines that were changed in the PR. | no | true |
| cmake_args | In case compile_commands.json was not found in the build directory it will invoke CMake, this should have all the required CMake arguments. | no | "" |
| clang_tidy_args | Additional clang-tidy arguments. | no | "" |
| clang_tidy_file | Path to .clang-tidy file. | yes | .clang-tidy |
| warnings_as_errors | Treats all warnings as errors. | no | true |
| fail_on_problems | Fail the action if there are any problems found by clang-tidy. | no | true |
Outputs
no outputs