From e2ddda5ba7af2a050a68196b8b9766d30a5ec23d Mon Sep 17 00:00:00 2001 From: Eduard Veit Date: Mon, 13 Sep 2021 13:45:01 +0200 Subject: [PATCH] :art: add shfmt params to pre-commit check --- .pre-commit-config.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 37554b0..043b8a4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,4 +3,9 @@ repos: rev: v0.0.17 hooks: - id: shellcheck - - id: shfmt \ No newline at end of file + - 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 \ No newline at end of file