We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 132e706 commit b5a3d7eCopy full SHA for b5a3d7e
3 files changed
.editorconfig
@@ -38,6 +38,7 @@ max_line_length = off
38
39
[*.sh]
40
indent_size = 4
41
+switch_case_indent = true
42
max_line_length = off
43
44
[.bash*]
.github/workflows/shell-lint.yaml
@@ -40,7 +40,7 @@ jobs:
globalStatus=0
while IFS= read -r -d '' f; do
- if ! uv run shfmt --diff --indent 4 -- "$f"; then
+ if ! uv run shfmt --diff --indent 4 --case-indent -- "$f"; then
echo "[ERROR] shfmt failed for $f"
45
globalStatus=1
46
fi
.hooks/pre-commit.sh
@@ -36,7 +36,7 @@ function shell_lint() {
36
continue
37
block "[ERROR] shfmt failed for $f"
0 commit comments