Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable shellcheck warnings for x-prefix comparison and unreachable code #177

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion resources/Makefile
Original file line number Diff line number Diff line change
@@ -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)")

Expand Down