mirror of
https://github.com/cisagov/log4j-affected-db.git
synced 2024-11-22 16:40:48 +00:00
Replace the beautysh hook with pre-commit-shfmt
We have had a difficult time with how beautysh parses some shellscripts. I went in pursuit of an alternative and I believe shfmt to be a good alternative. Co-authored-by: Shane Frasier <jeremy.frasier@trio.dhs.gov>
This commit is contained in:
parent
e2a729d0b1
commit
406b6880bd
1 changed files with 11 additions and 4 deletions
|
@ -48,13 +48,20 @@ repos:
|
||||||
- --strict
|
- --strict
|
||||||
|
|
||||||
# Shell script hooks
|
# Shell script hooks
|
||||||
- repo: https://github.com/lovesegfault/beautysh
|
- repo: https://github.com/cisagov/pre-commit-shfmt
|
||||||
rev: v6.1.0
|
rev: v0.0.2
|
||||||
hooks:
|
hooks:
|
||||||
- id: beautysh
|
- id: shfmt
|
||||||
args:
|
args:
|
||||||
- --indent-size
|
# Indent by two spaces
|
||||||
|
- -i
|
||||||
- '2'
|
- '2'
|
||||||
|
# Binary operators may start a line
|
||||||
|
- -bn
|
||||||
|
# Switch cases are indented
|
||||||
|
- -ci
|
||||||
|
# Redirect operators are followed by a space
|
||||||
|
- -sr
|
||||||
- repo: https://github.com/detailyang/pre-commit-shell
|
- repo: https://github.com/detailyang/pre-commit-shell
|
||||||
rev: 1.0.5
|
rev: 1.0.5
|
||||||
hooks:
|
hooks:
|
||||||
|
|
Loading…
Reference in a new issue