From 5544ff9f1b2fcd514f7de4fb1a374aa661698fa7 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 17 Dec 2024 20:10:23 +0000 Subject: [PATCH] feat(shellcheck): include ~/.shellcheckrc with example ignores and enables --- shellcheck/install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/shellcheck/install.sh b/shellcheck/install.sh index d0a63c72..3889bc1b 100644 --- a/shellcheck/install.sh +++ b/shellcheck/install.sh @@ -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