Skip to content

Commit 5afc3ff

Browse files
committed
example: shellcheck-run-steps
Signed-off-by: dann frazier <dann.frazier@chainguard.dev>
1 parent 100ae33 commit 5afc3ff

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

example.pre-commit-config.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ repos:
66
- repo: https://github.com/chainguard-dev/pre-commit-hooks
77
rev: 71fca50bcd1006b5cbcf71f03a3b493f48c4af7f
88
hooks:
9-
# Not quite ready for prime time yet, due to a tool dependency outside the pre-commit managed environment.
10-
#- id: shellcheck-run-steps
9+
- id: shellcheck-run-steps
10+
files: '^[^.][^/]*\.yaml$' # matches non-hidden .yaml files at the top level only
11+
# <shellcheck-run-steps args> -- <shellcheck args> -- <files>
12+
args: [ --, -S, error, -- ] # [ --shellcheck /usr/bin/shellcheck -- [SHELLCHECK ARGS] -- ]
1113
- id: check-for-epoch-bump
1214
files: |
1315
(?x)^(

0 commit comments

Comments
 (0)