# HG changeset patch # User Franz Glasner # Date 1725925820 -7200 # Node ID 1e46e254366e3a62d5243a23903c52e943aabccf # Parent ac92275b68478e2ee9392776afea26c3844d5bf5 Use a new .shellcheckrc file for common configuration settings for shellcheck. Module-wide settings are removed for now. diff -r ac92275b6847 -r 1e46e254366e .shellcheckrc --- /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 diff -r ac92275b6847 -r 1e46e254366e share/local-bsdtools/common.subr --- a/share/local-bsdtools/common.subr Mon Sep 09 15:38:20 2024 +0200 +++ b/share/local-bsdtools/common.subr Tue Sep 10 01:50:20 2024 +0200 @@ -12,9 +12,6 @@ #: -# shellcheck disable=3003,3043 -# See: https://www.shellcheck.net/wiki/ - #: The path to the external jq executable (JSON parser) JQ="/usr/local/bin/jq" diff -r ac92275b6847 -r 1e46e254366e share/local-bsdtools/farray.sh --- a/share/local-bsdtools/farray.sh Mon Sep 09 15:38:20 2024 +0200 +++ b/share/local-bsdtools/farray.sh Tue Sep 10 01:50:20 2024 +0200 @@ -72,9 +72,6 @@ #: -# shellcheck disable=2004,2166,3003,3043 -# See: https://www.shellcheck.net/wiki/ - _farr_array_prefix=_farr_A_ _farr_alist_prefix=_farr_KV_ _farr_alist_key_prefix=_farr_K_