You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -139,6 +139,11 @@ jobs:
139
139
-**Description**: The directory containing compilation database (like compile_commands.json) file.
140
140
- Default: ''
141
141
142
+
#### `extra-args`
143
+
144
+
-**Description**: A string of extra arguments passed to clang-tidy for use as compiler arguments (like `-std=c++14 -Wall`).
145
+
- Default: ''
146
+
142
147
### Outputs
143
148
144
149
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.
Copy file name to clipboardExpand all lines: action.yml
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -41,15 +41,15 @@ inputs:
41
41
required: false
42
42
default: "12"
43
43
verbosity:
44
-
description: A hidden option to control the action's log verbosity. This is the `logging` level (degaults to DEBUG)
44
+
description: A hidden option to control the action's log verbosity. This is the `logging` level (defaults to DEBUG).
45
45
required: false
46
46
default: "10"
47
47
lines-changed-only:
48
-
description: Set this option to 'true' to only analyse changes in the event's diff. Defaults to 'false'.
48
+
description: Set this option to 'true' to only analyze changes in the event's diff. Defaults to 'false'.
49
49
required: false
50
50
default: false
51
51
files-changed-only:
52
-
description: Set this option to 'false' to analyse any source files in the repo. Defaults to 'true'.
52
+
description: Set this option to 'false' to analyze any source files in the repo. Defaults to 'true'.
53
53
required: false
54
54
default: true
55
55
ignore:
@@ -74,6 +74,10 @@ inputs:
74
74
description: The directory containing compile_commands.json file.
75
75
required: false
76
76
default: ""
77
+
extra-args:
78
+
description: A string of extra arguments passed to clang-tidy for use as compiler arguments. Multiple arguments are separated by spaces so the argument name and value should use an '=' sign instead of a space.
79
+
required: false
80
+
default: ""
77
81
outputs:
78
82
checks-failed:
79
83
description: An integer that can be used as a boolean value to indicate if all checks failed.
0 commit comments