Skip to content

Commit d7c1ab4

Browse files
authored
fix: switch shellcheck to local system hook, drop Docker dependency (#3)
The shellcheck-precommit hook launches shellcheck via Docker. When Docker Desktop is not running, every git push fails with a Docker daemon error. Shellcheck is available locally via Homebrew (v0.11.0), so use language: system to call it directly — no daemon required.
1 parent 5764873 commit d7c1ab4

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.pre-commit-config.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ repos:
1616
args: ["--branch", "main", "--branch", "develop"]
1717
stages: [pre-commit]
1818

19-
- repo: https://github.com/koalaman/shellcheck-precommit
20-
rev: 99470f5e12208ff0fb17ab81c3c494f7620a1d8d # v0.11.0
19+
- repo: local
2120
hooks:
2221
- id: shellcheck
23-
args: ["--severity=warning"]
22+
name: ShellCheck
23+
language: system
24+
entry: shellcheck --severity=warning
25+
types: [shell]
2426

2527
- repo: https://github.com/scop/pre-commit-shfmt
2628
rev: e26a818fd47b4f33cefa99035d1265b0849f4b47 # v3.13.0-1

0 commit comments

Comments
 (0)