commit:     7a7e77357cca8d3e530cb96cf7a6ea0d879ba8e6
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 21 05:16:49 2019 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sun Apr 21 05:16:49 2019 +0000
URL:        https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=7a7e7735

shellcheck: turn off some checks to start

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 mk/scripts.mk | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/mk/scripts.mk b/mk/scripts.mk
index 7e512f0..d278ac1 100644
--- a/mk/scripts.mk
+++ b/mk/scripts.mk
@@ -14,7 +14,13 @@ _LCL_SED:=           $(shell ${_LCL_SED_SH})
 
 SED_REPLACE=           -e 's:@SHELL@:${SH}:g' -e 's:@LIB@:${LIBNAME}:g' -e 
's:@SYSCONFDIR@:${SYSCONFDIR}:g' -e 's:@CONFDIR@:${CONFDIR}:g' -e 
's:@LIBEXECDIR@:${LIBEXECDIR}:g' -e 's:@PREFIX@:${PREFIX}:g' -e 
's:@BINDIR@:${BINDIR}:g' -e 's:@SBINDIR@:${SBINDIR}:g' -e 
's:@INITDIR@:${INITDIR}:g' ${_PKG_SED} ${_LCL_SED}
 
-SHELLCHECK_CMD = shellcheck -s sh --exclude SC1008 -f gcc
+# SC1008: shebang
+# SC2039: warning: In POSIX sh, 'local' is undefined.
+# SC2086: splitting
+# SC2155: declare/assign
+# warning: domain is referenced but not assigned. [SC2154]
+# note: Don't use variables in the printf format string. Use printf "..%s.." 
"$foo". [SC2059]
+SHELLCHECK_CMD = shellcheck -s sh --exclude 
SC1008,SC2039,SC2086,SC2155,SC2154,SC2059 -f gcc
 
 # Tweak our shell scripts
 %.sh: %.sh.in
@@ -57,7 +63,8 @@ CLEANFILES+=  ${OBJS}
 clean:
        @if test -n "${CLEANFILES}"; then echo "rm -f ${CLEANFILES}"; rm -f 
${CLEANFILES}; fi
 
-shellcheck: ${SRCS}
-       @$(SHELLCHECK_CMD) $<
+shellcheck: $(filter net.lo.in net.example.in %.sh.in, ${SRCS}) $(filter %.sh, 
${INC})
+       @${ECHO} CHECKING $^
+       @$(SHELLCHECK_CMD) $^
 
 include ${MK}/gitignore.mk

Reply via email to