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
Github Actions for linting the C/C++ code. Uses clang-tidy, clang-format, and cppcheck.
2
4
3
-
Example of usage:
5
+
## Integration with GitHub Actions
6
+
7
+
For example, create a `.yml` file like `.github/workflows/cpp-linter.yml`.
4
8
5
9
```
6
-
name: c-linter
10
+
name: cpp-linter
7
11
8
12
on: [pull_request]
9
13
jobs:
10
-
c-linter:
11
-
name: c-linter
14
+
cpp-linter:
15
+
name: cpp-linter
12
16
runs-on: ubuntu-latest
13
17
steps:
14
-
- name: c-linter
18
+
- name: cpp-linter
15
19
uses: shenxianpeng/cpp-linter-action@master
16
20
env:
17
21
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18
22
```
23
+
## Results of GitHub Actions
24
+
25
+
This one has a test repository: [cpp-linter-action-demo](https://github.com/shenxianpeng/cpp-linter-action-demo)
26
+
27
+
You can feel free to commit C/C++ code and then see the actual results via Pull Request. such as this PR [#3](https://github.com/shenxianpeng/cpp-linter-action-demo/pull/3)
0 commit comments