Skip to content

Commit

Permalink
Add separate matcher for note to transform to notice (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Nov 14, 2021
1 parent c2b45dd commit 203a3fd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
16 changes: 15 additions & 1 deletion .github/problem-matcher-gcc.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
}
]
}
]
}
2 changes: 1 addition & 1 deletion .github/problem-matcher-tty.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"owner": "shellcheck-tty",
"pattern": [
{
"regexp": "^In\\s\\.\\/(.+)\\sline\\s(\\d+):$",
"regexp": "^In\\s\\.?\\/?(.+)\\sline\\s(\\d+):$",
"file": 1,
"line": 2
},
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/ignore_names.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,3 @@ jobs:
echo "::error:: Expected file $notexpect found in ${{ steps.check.outputs.files }}"
exit 1
fi

0 comments on commit 203a3fd

Please sign in to comment.