Blob Blame History Raw
From c9aa3920a716be12b9a0604fc61aaa39d1a79946 Mon Sep 17 00:00:00 2001
From: Stephen Gallagher <sgallagh@redhat.com>
Date: Wed, 22 Feb 2023 08:02:47 -0500
Subject: [PATCH] Disable shellcheck warnings

ShellCheck now returns non-zero for these warnings, causing the tests to fail.
This just excludes them from the checks.

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
---
 resources/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/resources/Makefile b/resources/Makefile
index 8d1eaac36a0d27f6afdb4a92c8fbc63006ec18fb..04f093d06d7c34161f48458e18d97b50c14d1a0f 100644
--- a/resources/Makefile
+++ b/resources/Makefile
@@ -1,7 +1,11 @@
 NUL =
 
 # SC2015: Note that A && B || C is not if-then-else. C may run when A is true.
-SHELLCHECK_EXCLUDE_CHECKS_ARGUMENT = -e 2015
+# SC2268 (style): Avoid x-prefix in comparisons as it no longer serves a
+# purpose.
+# SC2317 (info): Command appears to be unreachable. Check usage (or ignore if
+# invoked indirectly).
+SHELLCHECK_EXCLUDE_CHECKS_ARGUMENT = -e 2015 -e 2268 -e 2317
 
 SHELLCHECK = $(shell shellcheck -V > /dev/null && echo "shellcheck -x $(SHELLCHECK_EXCLUDE_CHECKS_ARGUMENT)")
 
-- 
2.39.2