-
Notifications
You must be signed in to change notification settings - Fork 5
34 lines (24 loc) · 1 KB
/
linter.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
name: Lint Code Base
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Lint code base
uses: docker://github/super-linter:v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# until clang-format github action uses same version as used on MacOS
VALIDATE_CLANG_FORMAT: false
# until C_CPPLINT_ARGUMENTS variable works?
VALIDATE_CPP: false
# we use escape sequence in wex-macros.xml
VALIDATE_XML: false
VALIDATE_SQLFLUFF: false
# exclude xsl, all externals,
FILTER_REGEX_EXCLUDE: .*data/*.xsl|external|src/syntac/wex|locale/po-sync.sh
# cpplint
C_CPPLINT_ARGUMENTS: --quiet --filter=-build,-readability/fn_size,-readability/multiline_string,-runtime/explicit,-runtime/indentation_namespace,-runtime/int,-runtime/references,-whitespace
C_CPPLINT_FILTER_REGEX_INCLUDE: (src|include|test)