From 203a3fd018dfe73f8ae7e3aa8da2c149a5f41c33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Sun, 14 Nov 2021 11:48:26 +0100 Subject: [PATCH] Add separate matcher for note to transform to notice (#53) --- .github/problem-matcher-gcc.json | 16 +++++++++++++++- .github/problem-matcher-tty.json | 2 +- .github/workflows/ignore_names.yml | 2 -- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/problem-matcher-gcc.json b/.github/problem-matcher-gcc.json index 47672e0..09b4070 100644 --- a/.github/problem-matcher-gcc.json +++ b/.github/problem-matcher-gcc.json @@ -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 + } + ] } ] } diff --git a/.github/problem-matcher-tty.json b/.github/problem-matcher-tty.json index 3bdca4d..2467ff8 100644 --- a/.github/problem-matcher-tty.json +++ b/.github/problem-matcher-tty.json @@ -4,7 +4,7 @@ "owner": "shellcheck-tty", "pattern": [ { - "regexp": "^In\\s\\.\\/(.+)\\sline\\s(\\d+):$", + "regexp": "^In\\s\\.?\\/?(.+)\\sline\\s(\\d+):$", "file": 1, "line": 2 }, diff --git a/.github/workflows/ignore_names.yml b/.github/workflows/ignore_names.yml index 8e03775..9686edd 100644 --- a/.github/workflows/ignore_names.yml +++ b/.github/workflows/ignore_names.yml @@ -37,5 +37,3 @@ jobs: echo "::error:: Expected file $notexpect found in ${{ steps.check.outputs.files }}" exit 1 fi - -