Reorganize problem matchers

This commit is contained in:
Šarūnas Nejus 2025-08-02 19:21:10 +01:00
parent 61755ada9b
commit c2043dad7f
No known key found for this signature in database
GPG key ID: DD28F6704DBE3435
4 changed files with 37 additions and 34 deletions

View file

@ -0,0 +1,16 @@
{
"problemMatcher": [
{
"owner": "sphinx-build",
"severity": "error",
"pattern": [
{
"regexp": "^(/[^:]+):((\\d+):)?(\\sWARNING:)?\\s*(.+)$",
"file": 1,
"line": 3,
"message": 5
}
]
}
]
}

View 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
}
]
}
]
}

View file

@ -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
}
]
}
]
}

View file

@ -131,8 +131,10 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: poetry install --extras=docs run: poetry install --extras=docs
- name: Add Sphinx problem matcher - name: Add Sphinx problem matchers
run: echo "::add-matcher::.github/sphinx-problem-matcher.json" run: |
echo "::add-matcher::.github/problem-matchers/sphinx-build.json"
echo "::add-matcher::.github/problem-matchers/sphinx-lint.json"
- name: Lint docs - name: Lint docs
run: poe lint-docs run: poe lint-docs