Add linters (#1)

* Add linters and ignore antigen.zsh
This commit is contained in:
2022-12-12 13:50:31 +02:00
committed by GitHub
parent 9471a63475
commit 5e06a735cc
3 changed files with 55 additions and 14 deletions

View File

@@ -94,6 +94,7 @@ function section_dotfiles
shfmt)
# Format shell scripts according to following rules.
shfmt \
--find \
--list \
--write \
--diff \
@@ -104,13 +105,7 @@ function section_dotfiles
--case-indent \
--space-redirects \
--func-next-line \
"$DOTFILES" \
"$DOTFILES/local/bin/dfm" \
"$DOTFILES/local/bin/x-check-git-attributes" \
"$DOTFILES/local/bin/x-open-ports" \
"$DOTFILES/config/alias" \
"$DOTFILES/config/exports" \
"$DOTFILES/config/functions"
"$DOTFILES"
;;
*)
echo "$USAGE_PREFIX [link | update | shfmt]"