1
0
Fork 0
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:
Nicholas McDonnell 2021-07-13 17:53:55 -04:00
parent e2a729d0b1
commit 406b6880bd
No known key found for this signature in database
GPG key ID: 7994ADE2A56BE5D1

View file

@ -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: