sintonia/Makefile
jo 38513c3bed Add shell-check job
We don't want to fail on shellcheck yet.
2021-08-17 12:20:52 +02:00

16 lines
334 B
Makefile

.PHONY: setup
SHELL = bash
all: setup
setup:
command -v pre-commit > /dev/null && pre-commit install
# https://google.github.io/styleguide/shellguide.html
shell-format:
shfmt -f . | xargs shfmt -i 2 -ci -sr -kp -w
shell-check:
shfmt -f . | xargs shfmt -i 2 -ci -sr -kp -d
shfmt -f . | xargs shellcheck --color=always || true