Skip to content

Commit 9a615ae

Browse files
authored
chore: Add remark-lint problem matcher (#997)
1 parent 29da443 commit 9a615ae

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ on:
77
- "package*.json"
88
- "**/*.md"
99
- ".github/workflows/ci.yml"
10+
- ".github/workflows/remark-lint-problem-matcher.json"
1011

1112
pull_request:
1213
paths:
1314
- "package*.json"
1415
- "**/*.md"
1516
- ".github/workflows/ci.yml"
17+
- ".github/workflows/remark-lint-problem-matcher.json"
1618

1719
jobs:
1820
lint:
@@ -29,4 +31,6 @@ jobs:
2931
run: npm ci
3032

3133
- name: Test
32-
run: npm test
34+
run: |
35+
echo "::add-matcher::.github/workflows/remark-lint-problem-matcher.json"
36+
npm test
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"problemMatcher": [
3+
{
4+
"owner": "remark-lint",
5+
"pattern": [
6+
{
7+
"regexp": "^(?:\\x1b\\[\\d+m)*(.+?)(?:\\x1b\\[\\d+m)*$",
8+
"file": 1
9+
},
10+
{
11+
"regexp": "^\\s+(?:\\d+:\\d+-)?(\\d+):(\\d+)\\s+\\S*(error|warning|info)\\S*\\s+(.+)\\s+(\\S+)\\s+(?:\\S+)$",
12+
"line": 1,
13+
"column": 2,
14+
"severity": 3,
15+
"message": 4,
16+
"code": 5,
17+
"loop": true
18+
}
19+
]
20+
}
21+
]
22+
}

0 commit comments

Comments
 (0)