Skip to content

Commit 3110439

Browse files
committed
Reorganize problem matchers
1 parent 3c46acd commit 3110439

File tree

4 files changed

+37
-34
lines changed

4 files changed

+37
-34
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"problemMatcher": [
3+
{
4+
"owner": "sphinx-build",
5+
"severity": "error",
6+
"pattern": [
7+
{
8+
"regexp": "^(/[^:]+):((\\d+):)?(\\sWARNING:)?\\s(.+)$",
9+
"file": 1,
10+
"line": 3,
11+
"message": 5
12+
}
13+
]
14+
}
15+
]
16+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"problemMatcher": [
3+
{
4+
"owner": "sphinx-lint",
5+
"severity": "error",
6+
"pattern": [
7+
{
8+
"regexp": "^([^:]+):(\\d+):\\s+(.*)\\s\\(([a-z-]+)\\)$",
9+
"file": 1,
10+
"line": 2,
11+
"message": 3,
12+
"code": 4
13+
}
14+
]
15+
}
16+
]
17+
}

.github/sphinx-problem-matcher.json

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

.github/workflows/lint.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,10 @@ jobs:
131131
- name: Install dependencies
132132
run: poetry install --extras=docs
133133

134-
- name: Add Sphinx problem matcher
135-
run: echo "::add-matcher::.github/sphinx-problem-matcher.json"
134+
- name: Add Sphinx problem matchers
135+
run: |
136+
echo "::add-matcher::.github/problem-matchers/sphinx-build.json"
137+
echo "::add-matcher::.github/problem-matchers/sphinx-lint.json"
136138
137139
- name: Build docs
138140
run: poe docs -e SPHINXOPTS=--fail-on-warning

0 commit comments

Comments
 (0)