Skip to content

Commit 64adf4c

Browse files
committed
Remove tflint from pre-commit
1 parent 419bf92 commit 64adf4c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.githooks/pre-commit

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,8 @@ if command_exists ./node_modules/.bin/prettier; then
5858
echo "$files" | xargs ./node_modules/.bin/prettier --ignore-unknown --write
5959
fi
6060

61-
if command_exists tflint; then
62-
tflint --init
63-
echo "$files" | xargs -I {} tflint --config "$(pwd)/.tflint.hcl" --color --filter={}
64-
fi
61+
# We don't have `tflint` in pre-commit hook because it doesn't ignore files
62+
# ignored in `.gitignore`. More details: https://github.com/terraform-linters/tflint/issues/2283
6563

6664
# Add the modified/prettified files to staging
6765
echo "$files" | xargs git add

0 commit comments

Comments
 (0)