Add separate matcher for note to transform to notice (#53)

This commit is contained in:
Joakim Sørensen 2021-11-14 11:48:26 +01:00 committed by GitHub
parent c2b45ddc5f
commit 203a3fd018
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 4 deletions

View File

@ -4,7 +4,7 @@
"owner": "shellcheck-gcc",
"pattern": [
{
"regexp": "^\\.\\/(.+):(\\d+):(\\d+):\\s(note|warning|error):\\s(.*)\\s\\[(SC\\d+)\\]$",
"regexp": "^\\.?\\/?(.+):(\\d+):(\\d+):\\s(warning|error):\\s(.*)\\s\\[(SC\\d+)\\]$",
"file": 1,
"line": 2,
"column": 3,
@ -13,6 +13,20 @@
"code": 6
}
]
},
{
"owner": "shellcheck-gcc-notice",
"severity": "notice",
"pattern": [
{
"regexp": "^\\.?\\/?(.+):(\\d+):(\\d+):\\s(note):\\s(.*)\\s\\[(SC\\d+)\\]$",
"file": 1,
"line": 2,
"column": 3,
"message": 5,
"code": 6
}
]
}
]
}

View File

@ -4,7 +4,7 @@
"owner": "shellcheck-tty",
"pattern": [
{
"regexp": "^In\\s\\.\\/(.+)\\sline\\s(\\d+):$",
"regexp": "^In\\s\\.?\\/?(.+)\\sline\\s(\\d+):$",
"file": 1,
"line": 2
},

View File

@ -37,5 +37,3 @@ jobs:
echo "::error:: Expected file $notexpect found in ${{ steps.check.outputs.files }}"
exit 1
fi