Skip to content

Commit

Permalink
Disable shellcheck warning for x-prefix comparison
Browse files Browse the repository at this point in the history
ShellCheck version 0.9.0 now returns non-zero for this warning,
causing the tests to fail. This just excludes it from the checks.

Signed-off-by: Stephen Gallagher <[email protected]>
  • Loading branch information
sgallagher committed Feb 22, 2023
1 parent 0d046ad commit 31554a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resources/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
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.
SHELLCHECK_EXCLUDE_CHECKS_ARGUMENT = -e 2015 -e 2268

SHELLCHECK = $(shell shellcheck -V > /dev/null && echo "shellcheck -x $(SHELLCHECK_EXCLUDE_CHECKS_ARGUMENT)")

Expand Down

0 comments on commit 31554a8

Please sign in to comment.