-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (49 loc) · 1.65 KB
/
linters.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
name: Lint
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
permissions: # set top-level default permissions as security best practice
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name == 'workflow_dispatch' }}
cancel-in-progress: true
jobs:
optional-lint:
name: Optional Lint
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected] # v4.2.2
- name: misspell # Check spellings as well
uses: reviewdog/[email protected] # v1.23.0
with:
github_token: ${{ secrets.github_token }}
locale: "US"
reporter: github-pr-check
level: info
filter_mode: diff_context
exclude: |
./docs/hpcdoc/source/_static/*
- name: shellcheck # Static check shell scripts
uses: reviewdog/[email protected] # v1.27.0
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-check
level: info
filter_mode: diff_context
- name: cpplint # Static check C++ code
uses: reviewdog/[email protected] # v1.8.0
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-check
level: warning
flags: --linelength=120
filter: "-runtime/references,\
-build/include,\
-build/namespaces,\
-build/header_guard,\
-whitespace/line_length,\
-whitespace/indent_namespace,\
-runtime/string" # Ignore runtime checks on string usage.