nicelabs/clang-format Linter
Lint C/C++ code using clang-format.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| path | Path to the code to format | — | ${{ github.workspace }} |
| prebuilt-tag | Release tag of "muttleyxd/clang-tools-static-binaries" (e.g., latest, master-<version>) | — | latest |
| version | clang-format version to use (10 or higher) | — | 20 |
| style | Coding style | — | file |
| fallback-style | Fallback style when no .clang-format file found | — | LLVM |
| extensions | Space-separated file extensions to format | — | .h .hpp .hh .h++ .hxx .c .cpp .cc .c++ .cxx .ino .pde .proto .cu |
| warnings-as-errors | Treat formatting warnings as errors | — | true |
| dry-run | Report issues without modifying files | — | true |
Outputs
| name | description |
|---|---|
| unformatted-files | Newline-separated list of unformatted files |
| unformatted-file-count | Number of unformatted files |