mirror of
https://github.com/cisagov/log4j-affected-db.git
synced 2024-11-22 08:30: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
|
||||
|
||||
# Shell script hooks
|
||||
- repo: https://github.com/lovesegfault/beautysh
|
||||
rev: v6.1.0
|
||||
- repo: https://github.com/cisagov/pre-commit-shfmt
|
||||
rev: v0.0.2
|
||||
hooks:
|
||||
- id: beautysh
|
||||
- id: shfmt
|
||||
args:
|
||||
- --indent-size
|
||||
# Indent by two spaces
|
||||
- -i
|
||||
- '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
|
||||
rev: 1.0.5
|
||||
hooks:
|
||||
|
|
Loading…
Reference in a new issue