GitHub Actions: Add pylint problem matcher

This commit is contained in:
Franck Nijhof
2020-07-04 13:46:36 +02:00
parent 0b11fda017
commit 92d0545f82
2 changed files with 20 additions and 0 deletions

View File

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

17
.github/workflows/matchers/pylint.json vendored Normal file
View File

@@ -0,0 +1,17 @@
{
"problemMatcher": [
{
"owner": "pylint",
"pattern": [
{
"regexp": "^(.+):(\\d+):(\\d+):\\s([CERW]\\d{4}):\\s(.+)$",
"file": 1,
"line": 2,
"column": 3,
"message": 5,
"code": 4
}
]
}
]
}