pre-commit
Hook to validate terraform fmt
Installation
Install hook on git repository
curl -sL https://gist.githubusercontent.com/hmrbarros/2bb37d1be20359e31c5d3b3ee4ef9331/raw/4904a812a80c432c497f442b9b4b61dad5644c40/pre-commit -o .git/hooks/pre-commit && \
chmod u+x .git/hooks/pre-commit