feat(shellcheck): include ~/.shellcheckrc with example ignores and enables

This commit is contained in:
AJ ONeal
2024-12-17 20:34:55 +00:00
parent d3f3ad1688
commit 5544ff9f1b
+7 -1
View File
@@ -21,7 +21,13 @@ __init_shellcheck() {
# pkg_install must be defined by every package
pkg_install() {
if ! test -e ~/.shellcheckrc; then
touch ~/.shellcheckrc
{
echo '# ignore: https://www.shellcheck.net/wiki/Ignore'
echo '# enable: https://www.shellcheck.net/wiki/optional'
echo '#disable=SC1090,SC1091'
echo '#enable=add-default-case,check-extra-masked-returns,deprecate-which'
echo '#enable=quote-safe-variables,check-set-e-suppressed,require-variable-braces'
} > ~/.shellcheckrc
fi
# ~/.local/opt/shellcheck-v0.99.9/bin