21 lines
354 B
Makefile
21 lines
354 B
Makefile
alias fmt := format
|
|
alias fmtw := format-write
|
|
|
|
test:
|
|
bash test.sh
|
|
zsh test.sh
|
|
# ksh test.sh
|
|
|
|
format:
|
|
git ls-files -z "*.sh" | xargs -0 shfmt -d
|
|
|
|
format-write:
|
|
git ls-files -z "*.sh" | xargs -0 shfmt -w
|
|
|
|
check:
|
|
codespell
|
|
git ls-files -z "*.sh" | xargs -0 shellcheck
|
|
! rg -i "# (FIXME|TODO)"
|
|
|
|
pre-commit: format check test
|