We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 419bf92 commit 64adf4cCopy full SHA for 64adf4c
.githooks/pre-commit
@@ -58,10 +58,8 @@ if command_exists ./node_modules/.bin/prettier; then
58
echo "$files" | xargs ./node_modules/.bin/prettier --ignore-unknown --write
59
fi
60
61
-if command_exists tflint; then
62
- tflint --init
63
- echo "$files" | xargs -I {} tflint --config "$(pwd)/.tflint.hcl" --color --filter={}
64
-fi
+# We don't have `tflint` in pre-commit hook because it doesn't ignore files
+# ignored in `.gitignore`. More details: https://github.com/terraform-linters/tflint/issues/2283
65
66
# Add the modified/prettified files to staging
67
echo "$files" | xargs git add
0 commit comments