Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
changeset 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 | ac92275b6847 |
| children | 38cbc3b70078 |
| files | .shellcheckrc share/local-bsdtools/common.subr share/local-bsdtools/farray.sh |
| diffstat | 3 files changed, 20 insertions(+), 6 deletions(-) [+] |
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
--- 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"
--- 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_
