ci: shell formatter check is on part with editor one
This commit is contained in:
parent
63581953db
commit
1d09ac5996
1 changed files with 2 additions and 6 deletions
|
@ -1,14 +1,11 @@
|
|||
---
|
||||
skip_output: [meta, success]
|
||||
no_tty: true
|
||||
|
||||
commit-msg:
|
||||
commands:
|
||||
lint:convco:
|
||||
run: cat {1} | convco check --from-stdin
|
||||
lint:typos:
|
||||
run: cat {1} | typos -
|
||||
|
||||
pre-commit:
|
||||
parallel: false
|
||||
commands:
|
||||
|
@ -19,8 +16,7 @@ pre-commit:
|
|||
run: shellcheck {staged_files}
|
||||
shfmt:
|
||||
glob: "*.sh"
|
||||
run: shfmt -d -ln bash -i 4 {staged_files}
|
||||
|
||||
run: shfmt -d -ln bash -i 2 {staged_files}
|
||||
pre-push:
|
||||
parallel: false
|
||||
commands:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue