view .shellcheckrc @ 809:6cf3e1021862

common.subr: Change handling of internal errors. They now - return 64 or 70 - print always an error message to stderr - set the given option variable to the null value - unset OPTARG in *every* case. This is independent whether the short options start with an `:' character or not.
author Franz Glasner <fzglas.hg@dom66.de>
date Tue, 05 Nov 2024 18:42:40 +0100
parents e18cc5fe828c
children
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
# ;& is non-standard
disable=SC2127
# This case is not specified by getopts   (we have long options also)
disable=SC2214

enable=avoid-nullary-conditions