Skip to content

Commit 419bf92

Browse files
committed
Make pre-commit hook ignore tf files not checked in to source control
1 parent c9558f6 commit 419bf92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.githooks/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ fi
6060

6161
if command_exists tflint; then
6262
tflint --init
63-
tflint --config "$(pwd)/.tflint.hcl" --color --recursive
63+
echo "$files" | xargs -I {} tflint --config "$(pwd)/.tflint.hcl" --color --filter={}
6464
fi
6565

6666
# Add the modified/prettified files to staging

0 commit comments

Comments
 (0)