-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (40 loc) · 1.53 KB
/
Copy pathlinter.yml
File metadata and controls
46 lines (40 loc) · 1.53 KB
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
---
name: Super-Linter
# Run this workflow every time a new commit pushed to your repository
on: push
permissions: {}
jobs:
super-lint:
name: Lint
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
# To report GitHub Actions status checks
statuses: write
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
# super-linter needs the full git history to get the
# list of files that changed across commits
fetch-depth: 0
persist-credentials: false
- name: Run Super-Linter
uses: super-linter/super-linter/slim@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Exclude SC1071 (unsupported shell) to skip zsh scripts gracefully
SHELLCHECK_OPTS: "--exclude=SC1071"
# Exclude: elpa (third-party), .venv (virtual env), zsh-specific files
# (shfmt cannot parse zsh-specific syntax)
FILTER_REGEX_EXCLUDE: .*(emacs/.emacs.d/elpa/|\.venv/|mysql-work/\.zsh\.d/rc/mysql-work\.sh|scripts/usr/bin/macupdate|zsh/\.p10k\.zsh).*
VALIDATE_ANSIBLE: false
VALIDATE_GIT_COMMITLINT: false
# Conflicts with black (both are Python formatters)
VALIDATE_PYTHON_PYINK: false
VALIDATE_PYTHON_RUFF_FORMAT: false
# Redundant with PYTHON_RUFF which covers all flake8 rules
VALIDATE_PYTHON_FLAKE8: false
# Until https://github.com/kucherenko/jscpd/issues/737 is fixed
VALIDATE_JSCPD: false