feat: check shell script with git hook

This commit is contained in:
Yorick Barbanneau 2024-10-09 23:52:15 +02:00
parent d446f84030
commit 44ce61ce0c

View file

@ -8,11 +8,19 @@ commit-msg:
run: cat {1} | convco check --from-stdin
lint:typos:
run: cat {1} | typos -
pre-commit:
parallel: false
commands:
lint:typos:staged_files:
run: typos {staged_files}
shellcheck:
glob: "*.sh"
run: shellcheck {staged_files}
shfmt:
glob: "*.sh"
run: shfmt -d -ln bash -i 4 {staged_files}
pre-push:
parallel: false
commands: