Skip to content

Commit

Permalink
feat(shellcheck): include ~/.shellcheckrc with example ignores and en…
Browse files Browse the repository at this point in the history
…ables
  • Loading branch information
coolaj86 committed Dec 17, 2024
1 parent d3f3ad1 commit 5544ff9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion shellcheck/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5544ff9

Please sign in to comment.