feat: check shell script with git hook
This commit is contained in:
parent
d446f84030
commit
44ce61ce0c
1 changed files with 8 additions and 0 deletions
|
@ -8,11 +8,19 @@ commit-msg:
|
||||||
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:
|
||||||
lint:typos:staged_files:
|
lint:typos:staged_files:
|
||||||
run: 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:
|
pre-push:
|
||||||
parallel: false
|
parallel: false
|
||||||
commands:
|
commands:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue