We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
terraform fmt
1 parent 5f0702d commit f69e3fbCopy full SHA for f69e3fb
.githooks/pre-commit
@@ -33,6 +33,13 @@ if command_exists typos; then
33
echo "$files" | xargs typos
34
fi
35
36
+if command_exists terraform; then
37
+ # `terraform fmt` doesn't ignore non-tf files automatically
38
+ tf_files=$(echo "$files" | { grep -E '\.tf$' || true; })
39
+
40
+ echo "$tf_files" | xargs terraform fmt
41
+fi
42
43
if command_exists terraform-docs; then
44
for tf_module in $tf_modules; do
45
terraform-docs markdown "$tf_module" --output-file "README.md"
0 commit comments