From: Omar Sandoval Date: Fri, 10 Nov 2017 21:18:33 +0000 (-0800) Subject: shellcheck: ignore SC2119 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=8f816641e86dfb1c9178da61dbe75adba1395b19;p=users%2Fsagi%2Fblktests.git shellcheck: ignore SC2119 It was causing this useless note: tests/block/002:33:7: note: Use _init_scsi_debug "$@" if function's $1 should mean script's $1. [SC2119] Signed-off-by: Omar Sandoval --- diff --git a/Makefile b/Makefile index c578016..8f2c762 100644 --- a/Makefile +++ b/Makefile @@ -8,9 +8,11 @@ clean: # the place. # SC2034: "VARIABLE appears unused". All test scripts use this for the test # metadata, and many helper functions define global variables. +# SC2119: "Use foo "$@" if function's $1 should mean script's $1". False +# positives on helpers like _init_scsi_debug. # SC2154: "VARIABLE is referenced but not assigned". False positives on # TEST_RUN[foo]=bar. -SHELLCHECK_EXCLUDE := SC1090,SC2034,SC2154 +SHELLCHECK_EXCLUDE := SC1090,SC2034,SC2119,SC2154 shellcheck: shellcheck -x -e $(SHELLCHECK_EXCLUDE) -f gcc check new common/* tests/*/[0-9]*[0-9]