Skip to content

Commit 6c21201

Browse files
committed
ci(lint): use super-linter
Replace all other linters with super-linter
1 parent 6902c4c commit 6c21201

File tree

5 files changed

+58
-53
lines changed

5 files changed

+58
-53
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
{
3+
"problemMatcher": [
4+
{
5+
"owner": "markdownlint",
6+
"pattern": [
7+
{
8+
"regexp": "^([^:]*):(\\d+):?(\\d+)?\\s([\\w-\\/]*)\\s(.*)$",
9+
"file": 1,
10+
"line": 2,
11+
"column": 3,
12+
"code": 4,
13+
"message": 5
14+
}
15+
]
16+
}
17+
]
18+
}

.github/workflows/eclint.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/workflows/linter.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Lint
2+
on:
3+
pull_request:
4+
5+
jobs:
6+
super-linter:
7+
name: Lint
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout Code
12+
uses: actions/checkout@v2
13+
14+
- name: Setup Node
15+
uses: actions/setup-node@v1
16+
- name: Add matchers
17+
run: |
18+
echo "::add-matcher::.github/markdownlint-problem-matcher.json"
19+
- name: Lint Code Base
20+
uses: github/super-linter@v3
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
FILTER_REGEX_EXCLUDE: .*.template
24+
25+
markdownlint:
26+
name: Markdownlint
27+
runs-on: ubuntu-latest
28+
29+
steps:
30+
- name: Checkout Code
31+
uses: actions/checkout@v2
32+
33+
- name: Setup Node
34+
uses: actions/setup-node@v1
35+
36+
- name: Run Markdownlint
37+
run: |
38+
echo "::add-matcher::.github/markdownlint-problem-matcher.json"
39+
npm i -g markdownlint-cli
40+
markdownlint "**/*.md"

.github/workflows/markdown-link-check.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/shfmt.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)