GitHub Actions: Add codespell problem matcher

This commit is contained in:
Franck Nijhof
2020-07-04 21:56:01 +02:00
parent 95d980da4a
commit ecc8f4cbe1
2 changed files with 19 additions and 0 deletions

View File

@@ -195,6 +195,9 @@ jobs:
run: | run: |
echo "Failed to restore Python virtual environment from cache" echo "Failed to restore Python virtual environment from cache"
exit 1 exit 1
- name: Register codespell problem matcher
run: |
echo "::add-matcher::.github/workflows/matchers/codespell.json"
- name: Run codespell - name: Run codespell
run: | run: |
. venv/bin/activate . venv/bin/activate

View File

@@ -0,0 +1,16 @@
{
"problemMatcher": [
{
"owner": "codespell",
"severity": "warning",
"pattern": [
{
"regexp": "^(.+):(\\d+):\\s(.+)$",
"file": 1,
"line": 2,
"message": 3
}
]
}
]
}