diff .shellcheckrc @ 542:1e46e254366e

Use a new .shellcheckrc file for common configuration settings for shellcheck. Module-wide settings are removed for now.
author Franz Glasner <fzglas.hg@dom66.de>
date Tue, 10 Sep 2024 01:50:20 +0200
parents
children 31b5c10ae1d4
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.shellcheckrc	Tue Sep 10 01:50:20 2024 +0200
@@ -0,0 +1,20 @@
+#
+# See: shellcheck(1)
+#
+# To see a list of 
+# See: https://www.shellcheck.net/wiki/
+
+source-path=SCRIPTDIR/../share/local-bsdtools
+source-path=SCRIPTDIR
+external-sources=true
+
+# $/${} is unnecessary on arithmetic variables
+disable=SC2004
+# Prefer [ p ] && [ q ] as [ p -a q ] is not well-defined
+disable=SC2166
+# In POSIX sh, $'..' is undefined
+disable=SC3003
+# In POSIX sh, local is undefined
+disable=SC3043
+
+enable=avoid-nullary-conditions