From d2d28b71fc15124ce959343befd0989b5ecf4d50 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Tue, 13 Aug 2024 13:39:03 +0200 Subject: [PATCH] shellcheck: suppress also `info` and `style` findings ... so that we get equivalent scan results to the old version of the shellcheck plug-in. Related: https://issues.redhat.com/browse/OSH-655 Closes: https://github.com/csutils/csmock/pull/182 --- py/plugins/shellcheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/plugins/shellcheck.py b/py/plugins/shellcheck.py index af61a8d..32523b4 100644 --- a/py/plugins/shellcheck.py +++ b/py/plugins/shellcheck.py @@ -25,7 +25,7 @@ SHELLCHECK_CAP_DIR = "/builddir/shellcheck-results" FILTER_CMD = "csgrep --mode=json --remove-duplicates --quiet " \ - "--invert-match --event '^note|warning\\[SC1090\\]'" + "--invert-match --event '^info|note|style|warning\\[SC1090\\]'" # default maximum number of scripts scanned by a single shellcheck process DEFAULT_SC_BATCH = 1