mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
Reorganize problem matchers
This commit is contained in:
parent
61755ada9b
commit
c2043dad7f
4 changed files with 37 additions and 34 deletions
16
.github/problem-matchers/sphinx-build.json
vendored
Normal file
16
.github/problem-matchers/sphinx-build.json
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"problemMatcher": [
|
||||
{
|
||||
"owner": "sphinx-build",
|
||||
"severity": "error",
|
||||
"pattern": [
|
||||
{
|
||||
"regexp": "^(/[^:]+):((\\d+):)?(\\sWARNING:)?\\s*(.+)$",
|
||||
"file": 1,
|
||||
"line": 3,
|
||||
"message": 5
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
17
.github/problem-matchers/sphinx-lint.json
vendored
Normal file
17
.github/problem-matchers/sphinx-lint.json
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"problemMatcher": [
|
||||
{
|
||||
"owner": "sphinx-lint",
|
||||
"severity": "error",
|
||||
"pattern": [
|
||||
{
|
||||
"regexp": "^([^:]+):(\\d+):\\s+(.*)\\s\\(([a-z-]+)\\)$",
|
||||
"file": 1,
|
||||
"line": 2,
|
||||
"message": 3,
|
||||
"code": 4
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
32
.github/sphinx-problem-matcher.json
vendored
32
.github/sphinx-problem-matcher.json
vendored
|
|
@ -1,32 +0,0 @@
|
|||
{
|
||||
"problemMatcher": [
|
||||
{
|
||||
"owner": "sphinx-build",
|
||||
"pattern": [
|
||||
{
|
||||
"regexp": "^([^:]+):\\s(.+)$",
|
||||
"file": 1,
|
||||
"message": 2
|
||||
},
|
||||
{
|
||||
"regexp": "^([^:]+):(\\d+):\\s(.+)$",
|
||||
"file": 1,
|
||||
"line": 2,
|
||||
"message": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"owner": "sphinx-lint",
|
||||
"pattern": [
|
||||
{
|
||||
"regexp": "^([^:]+):(\\d+):\\s+(.*)\\s\\(([a-z-]+)\\)$",
|
||||
"file": 1,
|
||||
"line": 2,
|
||||
"message": 3,
|
||||
"code": 4
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
6
.github/workflows/lint.yml
vendored
6
.github/workflows/lint.yml
vendored
|
|
@ -131,8 +131,10 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: poetry install --extras=docs
|
||||
|
||||
- name: Add Sphinx problem matcher
|
||||
run: echo "::add-matcher::.github/sphinx-problem-matcher.json"
|
||||
- name: Add Sphinx problem matchers
|
||||
run: |
|
||||
echo "::add-matcher::.github/problem-matchers/sphinx-build.json"
|
||||
echo "::add-matcher::.github/problem-matchers/sphinx-lint.json"
|
||||
|
||||
- name: Lint docs
|
||||
run: poe lint-docs
|
||||
|
|
|
|||
Loading…
Reference in a new issue