view .shellcheckrc @ 755:f6d296c5868e

farray.sh: Optimize farray_sort(): use setvar instead of eval where possible. While there use [...] || [...] instead of [ ... -o ... ] there.
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 18 Oct 2024 14:02:18 +0200
parents e8eb5e7ceb37
children 33df05108ba1
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 operators work
# as expected.
#

source-path=SCRIPTDIR/../share/local-bsdtools
source-path=SCRIPTDIR
source-path=/etc
source-path=/usr/local/etc/local-bsdtools
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, lexicographical \< is undefined.
disable=SC3012
# In POSIX sh, local is undefined
disable=SC3043

enable=avoid-nullary-conditions