Skip to content

Commit 61ff22e

Browse files
koki-developclaude
andcommitted
chore: add hadolint to pre-commit hooks
Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 20166e8 commit 61ff22e

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.hadolint.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
ignored:
2+
# apt packages don't need version pinning — base images are SHA-pinned
3+
- DL3008
4+
# cd in subshell is intentional (one-shot commands, not directory state)
5+
- DL3003
6+
# Consecutive RUN instructions are intentional for Docker layer caching
7+
- DL3059

lefthook.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ pre-commit:
1010
gitleaks:
1111
glob: "**/*"
1212
run: gitleaks git --pre-commit --staged
13+
hadolint:
14+
glob: "Dockerfile"
15+
run: hadolint {staged_files}
1316

1417
pre-push:
1518
commands:

0 commit comments

Comments
 (0)