chore: move shell tools to pre-commit (via docker) (#2207)
This commit is contained in:
parent
4a671a1b3b
commit
e04ab7679a
3 changed files with 12 additions and 50 deletions
8
Makefile
8
Makefile
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue