view .shellcheckrc @ 597:f6ba8ad6f76e

farray.sh: _farr_array_get_meta(), farr_array_tryget_meta() and _farr_array_tryget_meta_nonfatal() now do not use arithmetic expansion to check for valid length values. Now this is left to _farr_make_index() which does a far better job checking for valid values.
author Franz Glasner <fzglas.hg@dom66.de>
date Wed, 18 Sep 2024 16:57:41 +0200
parents 31b5c10ae1d4
children 24129dd789f0
line wrap: on
line source

#
# See: shellcheck(1)
#
# To see a list of
# See: https://www.shellcheck.net/wiki/
#
# This is a customization for FreeBSD:
# in FreeBSD there is $'...', local; and tests with logical operstors work
# as expected.
#

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