Normal severity is normal. CI severity is set to warning, but this should be changed to style (default) once most of the scripts are iether gone or modernized.
16 lines
357 B
Makefile
16 lines
357 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 --severity=$${SEVERITY:-style}
|