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
|
||||
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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue