-
Notifications
You must be signed in to change notification settings - Fork 38
41 lines (39 loc) · 1.13 KB
/
lint.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
name: reviewdog
on: pull_request
permissions:
pull-requests: write
contents: read
jobs:
flake8:
runs-on: ubuntu-latest
steps:
- name: Check out source repository
uses: actions/checkout@v3
- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Run flake8
uses: reviewdog/action-flake8@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: "github-pr-review"
flake8_args: "--config .flake8"
fail_on_error: "true"
cpplint:
runs-on: ubuntu-latest
steps:
- name: Check out source repository
uses: actions/checkout@v3
- name: Run cpplint
uses: reviewdog/action-cpplint@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: "github-pr-review"
flags: "--linelength=100"
filter: "-build/c++11 \
,-runtime/references \
,-whitespace/braces \
,-whitespace/indent \
,-whitespace/parens \
,-whitespace/semicolon"