-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (43 loc) · 1.54 KB
/
lint-superlinter.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
name: Lint
permissions: read-all
on:
push:
branches:
- main
pull_request:
jobs:
super-linter:
name: SuperLinter
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0 # Full git history is needed to get a proper list of changed files
- name: Run SuperLinter
uses: github/[email protected]
env:
# global settings
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
DEFAULT_BRANCH: main
LINTER_RULES_PATH: .config/
# disable
VALIDATE_CSS: false
VALIDATE_JSON: false # because eslint considers .json as .js (so rules like single-quote don't make sense)
VALIDATE_JAVASCRIPT_ES: false
VALIDATE_JAVASCRIPT_STANDARD: false
VALIDATE_JSCPD: false
VALIDATE_TYPESCRIPT_ES: false
VALIDATE_TYPESCRIPT_STANDARD: false
VALIDATE_RUST_2015: false
VALIDATE_RUST_CLIPPY: false # somehow fails the compilation
# config files
DOCKERFILE_HADOLINT_FILE_NAME: .hadolint.yaml
MARKDOWN_CONFIG_FILE: .markdownlint.json
PYTHON_BLACK_CONFIG_FILE: pyproject.toml
PYTHON_FLAKE8_CONFIG_FILE: setup.cfg
PYTHON_ISORT_CONFIG_FILE: pyproject.toml
PYTHON_PYLINT_CONFIG_FILE: pyproject.toml
RUBY_CONFIG_FILE: .rubocop.yml
YAML_CONFIG_FILE: .yamllint.yml