1
0
mirror of https://github.com/EV21/dynb.git synced 2025-12-26 16:39:32 +01:00

🎨 add shfmt params to pre-commit check

This commit is contained in:
2021-09-13 13:45:01 +02:00
parent 24aa20be3b
commit e2ddda5ba7

View File

@@ -4,3 +4,8 @@ repos:
hooks:
- id: shellcheck
- id: shfmt
args:
- "-l" # list files whose formatting differs from shfmt's
- "-i 2" # indent: 0 for tabs (default), >0 for number of spaces
- "-ci" # switch cases will be indented
- "-w" # write result to file instead of stdout