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
A Github Action for linting C/C++ code integrating clang-tidy and clang-format to collect feedback provided in the form of annotations, threadcomments, and stepsummary.
11
+
A Github Action for linting C/C++ code integrating clang-tidy and clang-format to collect feedback provided in the form of [`file-annotations`](#file-annotations), [`thread-comments`](#thread-comments), workflow [`step-summary`](#step-summary), and Pull Request reviews (with [`tidy-review`](#tidy-review) or [`format-review`](#format-review)).
12
12
13
13
> [!WARNING]
14
14
> We only support Linux runners using a Debian based Linux OS (like Ubuntu and many others).
@@ -20,8 +20,8 @@ A Github Action for linting C/C++ code integrating clang-tidy and clang-format t
20
20
v2
21
21
22
22
* Change action from using docker to composite steps
23
-
* improve workflow runs times from 1m 24s (currently) to 6-20s.
24
-
* better support for the database input option (which is currently broken with the docker env).
23
+
* improve workflow runs times from 1m 24s (using v1) to 6-20s (for simple workflow runs).
24
+
* better support for the database input option (which was broken with the docker environment in v1).
25
25
* better support cross-compilation
26
26
* better support 3rd party libraries
27
27
* Includes many issues and enhancements. See [#87](https://github.com/cpp-linter/cpp-linter-action/issues/87) for details.
@@ -148,16 +148,17 @@ jobs:
148
148
149
149
#### `no-lgtm`
150
150
151
-
-**Description**: Set this option to true or false to enable or disable the use of a thread comment that basically says 'Looks Good To Me' (when all checks pass).
152
-
- See `thread-comments` option for further details.
151
+
-**Description**: Set this option to true or false to enable or disable the use of a thread comment or pull request review that basically says 'Looks Good To Me' (when all checks pass).
152
+
- See [`thread-comments`](#thread-comments), [`tidy-review`](#tidy-review), and [`format-review`](#format-review) options for further details.
153
153
- Default: true (meaning no LGTM comment used)
154
154
155
155
#### `step-summary`
156
156
157
157
-**Description**: Set this option to true to append content as part of workflow's job summary.
158
158
- See implementation details in GitHub's documentation about
159
159
[Adding a job summary](https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary).
160
-
This option is independent of the `thread-comments` option, rather this option uses the same content that the `thread-comments` option would use.
160
+
This option is independent of the [`thread-comments`](#thread-comments) option, rather this option uses the same content that the [`thread-comments`](#thread-comments) option would use.
161
+
- Note: The [`no-lgtm`](#no-lgtm) option is _not_ applied to step summaries.
161
162
- Default: false
162
163
163
164
#### `file-annotations`
@@ -179,18 +180,20 @@ jobs:
179
180
180
181
**Beta feature** 🚧
181
182
182
-
-**Description**: Set this option to true to enable pull request reviews from clang-tidy.
183
+
-**Description**: Set this option to true to enable Pull Request reviews from clang-tidy.
183
184
- To use Pull Request reviews, the `GITHUB_TOKEN` (provided by Github to each repository) must be declared as an environment
184
185
variable. See [Authenticating with the GITHUB_TOKEN](https://docs.github.com/en/actions/reference/authentication-in-a-workflow)
185
186
- See also [the PR review feature caveats](https://cpp-linter.github.io/cpp-linter/pr_review_caveats.html)
187
+
- Note: The [`no-lgtm`](#no-lgtm) option is applicable to Pull Request reviews.
186
188
- Default: false
187
189
188
190
#### `format-review`
189
191
190
-
-**Description**: Set this option to true to enable pull request reviews from clang-format.
192
+
-**Description**: Set this option to true to enable Pull Request reviews from clang-format.
191
193
- To use Pull Request reviews, the `GITHUB_TOKEN` (provided by Github to each repository) must be declared as an environment
192
194
variable. See [Authenticating with the GITHUB_TOKEN](https://docs.github.com/en/actions/reference/authentication-in-a-workflow)
193
195
- See also [the PR review feature caveats](https://cpp-linter.github.io/cpp-linter/pr_review_caveats.html)
196
+
- Note: The [`no-lgtm`](#no-lgtm) option is applicable to Pull Request reviews.
194
197
- Default: false
195
198
196
199
### Outputs
@@ -215,25 +218,35 @@ The total number of concerns raised by clang-format only.
0 commit comments