ci: shell formatter check is on part with editor one

This commit is contained in:
Yorick Barbanneau 2025-02-04 18:05:10 +01:00
parent 63581953db
commit 1d09ac5996

View file

@ -1,14 +1,11 @@
---
skip_output: [meta, success] skip_output: [meta, success]
no_tty: true no_tty: true
commit-msg: commit-msg:
commands: commands:
lint:convco: lint:convco:
run: cat {1} | convco check --from-stdin run: cat {1} | convco check --from-stdin
lint:typos: lint:typos:
run: cat {1} | typos - run: cat {1} | typos -
pre-commit: pre-commit:
parallel: false parallel: false
commands: commands:
@ -16,11 +13,10 @@ pre-commit:
run: typos {staged_files} run: typos {staged_files}
shellcheck: shellcheck:
glob: "*.sh" glob: "*.sh"
run: shellcheck {staged_files} run: shellcheck {staged_files}
shfmt: shfmt:
glob: "*.sh" glob: "*.sh"
run: shfmt -d -ln bash -i 4 {staged_files} run: shfmt -d -ln bash -i 2 {staged_files}
pre-push: pre-push:
parallel: false parallel: false
commands: commands: