Closed brikis98 closed 3 years ago
Seems to work great! PR updated.
Thanks for the review! Merging now.
What was the reason for adding -check
? It was kind of nice having it automatically format the tf code for you instead of someone manually making the changes that need to be made?
What was the reason for adding
-check
? It was kind of nice having it automatically format the tf code for you instead of someone manually making the changes that need to be made?
I second this as well
This PR updates the
terraform-fmt
hook as follows:-diff -check
so the differences are printed, rather than made on disk.fmt
errors before exiting.These changes are very similar to https://github.com/gruntwork-io/pre-commit/pull/45.