-
-
Notifications
You must be signed in to change notification settings - Fork 6
67 lines (63 loc) · 1.64 KB
/
reviewdog.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: GitHub Actions - reviewdog
on:
pull_request:
paths-ignore:
- '*.ini'
- '*.md'
- '*.yml'
- '*.yaml'
- '.circleci/**'
- '.semaphore/**'
jobs:
cpplint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: reviewdog/action-cpplint@master
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
flags: --extensions=h,hpp,c,cpp,cc,cu,ipp --linelength=150
filter: "-build/c++11\
,-build/c++tr1\
,-build/header_guard\
,-build/include\
,-build/include_what_you_use\
,-readability/braces\
,-readability/todo\
,-runtime/int\
,-runtime/references\
,-runtime/string\
,-whitespace/braces\
,-whitespace/comments\
,-whitespace/indent\
,-whitespace/newline\
,-whitespace/operators\
,-whitespace/parens\
"
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: reviewdog/action-shellcheck@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
path: "."
pattern: "*.sh"
exclude: "./.git/*"
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: reviewdog/action-actionlint@v1
with:
reporter: github-pr-review
hadolint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: hadolint
uses: reviewdog/action-hadolint@v1
with:
reporter: github-pr-review