From 6644c8e39999cd792c627c1b4a660fa18a33e628 Mon Sep 17 00:00:00 2001 From: nobleo-projects Date: Tue, 7 Jul 2026 15:42:44 +0200 Subject: [PATCH 1/3] Add shfmt and shellcheck --- nobleo-hooks.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nobleo-hooks.yaml b/nobleo-hooks.yaml index 4e6b295..3984dc2 100644 --- a/nobleo-hooks.yaml +++ b/nobleo-hooks.yaml @@ -58,3 +58,13 @@ repos: # Formatter. - id: ruff-format args: [ --config, "line-length = 99", --config, "format.quote-style = 'single'" ] + # Shell linters + - repo: https://github.com/scop/pre-commit-shfmt + rev: v3.13.1-1 + hooks: + - id: shfmt + args: [--indent, "2"] + - repo: https://github.com/koalaman/shellcheck-precommit + rev: v0.11.0 + hooks: + - id: shellcheck From 168715b02a651da291808a9801f55b9077175d2b Mon Sep 17 00:00:00 2001 From: nobleo-projects Date: Tue, 7 Jul 2026 16:01:19 +0200 Subject: [PATCH 2/3] shfmt: indent with 4 spaces, write to file instead of stdout --- nobleo-hooks.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nobleo-hooks.yaml b/nobleo-hooks.yaml index 3984dc2..627c5c5 100644 --- a/nobleo-hooks.yaml +++ b/nobleo-hooks.yaml @@ -63,7 +63,7 @@ repos: rev: v3.13.1-1 hooks: - id: shfmt - args: [--indent, "2"] + args: [--indent, "4", --write] - repo: https://github.com/koalaman/shellcheck-precommit rev: v0.11.0 hooks: From 39ddd69594f485bf847d786eb1bf2bf628f769eb Mon Sep 17 00:00:00 2001 From: nobleo-projects Date: Tue, 7 Jul 2026 17:01:37 +0200 Subject: [PATCH 3/3] shfmt: set indentation to 2 --- nobleo-hooks.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nobleo-hooks.yaml b/nobleo-hooks.yaml index 627c5c5..c1a4b28 100644 --- a/nobleo-hooks.yaml +++ b/nobleo-hooks.yaml @@ -63,7 +63,7 @@ repos: rev: v3.13.1-1 hooks: - id: shfmt - args: [--indent, "4", --write] + args: [--indent, "2", --write] - repo: https://github.com/koalaman/shellcheck-precommit rev: v0.11.0 hooks: