Skip to content

Commit

Permalink
Use long options for shfmt arguments
Browse files Browse the repository at this point in the history
Since shfmt now supports long command line options we should use them
as that is our preference. The single quotes for the number of spaces
to indent is changed to double quotes to align with our usual quotation
style.
  • Loading branch information
mcdonnnj committed Jan 18, 2024
1 parent 2a75c48 commit f416c6c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ repos:
- id: shfmt
args:
# Indent by two spaces
- -i
- '2'
- --indent
- "2"
# Binary operators may start a line
- -bn
- --binary-next-line
# Switch cases are indented
- -ci
- --case-indent
# Redirect operators are followed by a space
- -sr
- --space-redirects
- repo: https://github.com/detailyang/pre-commit-shell
rev: 1.0.5
hooks:
Expand Down

0 comments on commit f416c6c

Please sign in to comment.