-
-
Notifications
You must be signed in to change notification settings - Fork 531
41 lines (39 loc) · 1.3 KB
/
CI_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
35
36
37
38
39
40
41
name: 'Lint Code Base'
on:
push:
branches-ignore:
- 'master'
- 'l10n_**' # Push events to translation service branches (that begin with "l10n_")
pull_request:
# Match all pull requests
jobs:
lint-code-base:
name: 'Lint Code Base'
permissions:
contents: read
packages: read
# To report GitHub Actions status checks
statuses: write
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- uses: actions/checkout@v4
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
- name: Lint Code Base
uses: super-linter/super-linter@v6
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: master
# .eslintrc.json allows non-standard comments
FILTER_REGEX_EXCLUDE: .*(\.eslintrc\.json|3rdparty/|.ci/vcpkg/|lib/exceptionhandler/include/|platforms/emscripten/).*
LINTER_RULES_PATH: /
VALIDATE_YAML: true
VALIDATE_JSON: true
VALIDATE_JAVASCRIPT_ES: true
JAVASCRIPT_ES_CONFIG_FILE: '.eslintrc.json'
VALIDATE_EDITORCONFIG: true
EDITORCONFIG_FILE_NAME: '.ecrc'
# To report GitHub Actions status checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}