]> www.infradead.org Git - users/sagi/blktests.git/commitdiff
shellcheck: ignore SC2119
authorOmar Sandoval <osandov@fb.com>
Fri, 10 Nov 2017 21:18:33 +0000 (13:18 -0800)
committerOmar Sandoval <osandov@fb.com>
Fri, 10 Nov 2017 21:34:40 +0000 (13:34 -0800)
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 <osandov@fb.com>
Makefile

index c57801605c2ea3f45cb79e8a10076cfdbe9dc44e..8f2c7628b28daafc4ce8ee0b8223cadc34224e84 100644 (file)
--- 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]