-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
28 lines (25 loc) · 715 Bytes
/
lint.yml
File metadata and controls
28 lines (25 loc) · 715 Bytes
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
name: Lint
on:
pull_request:
paths-ignore:
- "**.md"
push:
paths-ignore:
- "**.md"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Lint
run: |
npm install jsonlint
find spk/ \
-not -path "*work*" \
-not -path "spk/transmission/src/settings.json" \
-not -path "*/wizard_templates/install_uifile" \
-not -path "*/wizard_templates/upgrade_uifile" \
-regextype posix-extended \
-regex '.*(\.json|install_uifile\w*|upgrade_uifile\w*|app/config)' \
| xargs -i node_modules/jsonlint/lib/cli.js -q -c {};