Skip to content

Commit

Permalink
🍪 🔧 Add default formatting args to pre-commit hook:
Browse files Browse the repository at this point in the history
`shfmt`

Defaulting to Google's shell style guidelines
- see: https://www.mankier.com/1/shfmt#Examples
  • Loading branch information
TeoZosa committed Dec 13, 2022
1 parent cac6782 commit 19b4ca1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,16 @@ repos:
rev: v3.5.1-2
hooks:
- id: shfmt # native (requires Go to build)
args:
# Formatting options based on Google's shell style guidelines
# see:
# - https://www.mankier.com/1/shfmt#Examples
# - https://www.mankier.com/1/shfmt#Options
- --binary-next-line
- --case-indent
- --indent=2
- --write


- repo: https://github.com/adrienverge/yamllint
rev: v1.28.0
Expand Down

0 comments on commit 19b4ca1

Please sign in to comment.