chore: move shell tools to pre-commit (via docker) (#2207)

This commit is contained in:
Jonas L 2022-10-05 08:27:15 +02:00 committed by GitHub
parent 4a671a1b3b
commit e04ab7679a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 50 deletions

View file

@ -7,14 +7,6 @@ all: setup
setup:
command -v pre-commit > /dev/null && pre-commit install
# https://google.github.io/styleguide/shellguide.html
shell-format:
shfmt -f . | xargs git ls-files | xargs shfmt -i 2 -ci -sr -kp -w
shell-check:
shfmt -f . | xargs git ls-files | xargs shfmt -i 2 -ci -sr -kp -d
shfmt -f . | xargs git ls-files | xargs shellcheck --color=always --severity=$${SEVERITY:-style}
.PHONY: VERSION
VERSION:
tools/version.sh