-
Notifications
You must be signed in to change notification settings - Fork 61
60 lines (54 loc) · 1.76 KB
/
superlinter.yaml
File metadata and controls
60 lines (54 loc) · 1.76 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Super-Linter
# Run this workflow every time a new commit pushed to your repository
on:
push:
branches:
- main
pull_request:
permissions:
statuses: write
jobs:
# Set the job key. The key is displayed as the job name
# when a job name is not provided
build:
# Name the Job
name: Lint Code Base
# Set the type of machine to run on
runs-on: ubuntu-slim
permissions:
contents: read
packages: read
# To report GitHub Actions status checks
statuses: write
steps:
# Checks out a copy of your repository on the ubuntu-latest machine
- 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: install modules
run: |
npm ci
# Runs the Super-Linter action
- name: Run Super-Linter
uses: super-linter/super-linter/slim@v8
env:
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LINTER_RULES_PATH: /
JSCPD_CONFIG_FILE: .jscpd.json
YAML_CONFIG_FILE: .yamllint.yaml
VALIDATE_BIOME_FORMAT: false
VALIDATE_BIOME_LINT: false
VALIDATE_CSS: false
VALIDATE_GITHUB_ACTIONS_ZIZMOR: false
VALIDATE_JAVASCRIPT_ES: false
VALIDATE_JAVASCRIPT_PRETTIER: false
VALIDATE_JAVASCRIPT_STANDARD: false
VALIDATE_JSON: false
# Exclude symlinks because JSCPD has a problem with them
# (You could add nore using |. Like this: .*(docs/index.md|filex.js|.filey.yaml).*)
FILTER_REGEX_EXCLUDE: .*(docs[/]index.md|node_modules[/]).*