Skip to content

Commit e163f22

Browse files
authored
update cpp-linter dependency to v1.6.2 (#169)
resolves #168 adds 2 new output variables: - clang-tidy-checks-failed - clang-format-checks-failed
1 parent 37462e1 commit e163f22

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,19 @@ jobs:
165165

166166
### Outputs
167167

168-
This action creates 1 output variable named `checks-failed`. Even if the linting checks fail for source files this action will still pass, but users' CI workflows can use this action's output to exit the workflow early if that is desired.
168+
This action creates 3 output variables. Even if the linting checks fail for source files this action will still pass, but users' CI workflows can use this action's outputs to exit the workflow early if that is desired.
169+
170+
#### `checks-failed`
171+
172+
The total number of concerns raised by both clang-format and clang-tidy.
173+
174+
#### `clang-tidy-checks-failed`
175+
176+
The total number of concerns raised by clang-tidy only.
177+
178+
#### `clang-format-checks-failed`
179+
180+
The total number of concerns raised by clang-format only.
169181

170182
## Example
171183

action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,14 @@ inputs:
101101
default: ""
102102
outputs:
103103
checks-failed:
104-
description: An integer that can be used as a boolean value to indicate if all checks failed.
104+
description: An integer that can be used as a boolean value to indicate if any checks failed by clang-tidy and clang-format.
105105
value: ${{ steps.cpp-linter.outputs.checks-failed }}
106+
clang-tidy-checks-failed:
107+
description: An integer that can be used as a boolean value to indicate if any checks failed by clang-tidy only.
108+
value: ${{ steps.cpp-linter.outputs.clang-tidy-checks-failed }}
109+
clang-format-checks-failed:
110+
description: An integer that can be used as a boolean value to indicate if any checks failed by clang-format only.
111+
value: ${{ steps.cpp-linter.outputs.clang-format-checks-failed }}
106112
runs:
107113
using: "composite"
108114
steps:

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ clang-tools==0.9.0
44

55
# cpp-linter core Python executable package
66
# For details please see: https://github.com/cpp-linter/cpp-linter
7-
cpp-linter==1.6.1
7+
cpp-linter==1.6.2

0 commit comments

Comments
 (0)