This is a lookout analyzer that checks if your PR has been Terraform fmt'ed when submitting it.
Install the analyzer, and run it:
$ go install github.com/src-d/lookout-terraform-analyzer/cmd/lookout-terraform-analyzer
$ lookout-terraform-analyzerThe analyzer will start listening for pull review requests from lookout.
To test it, cd to the desired repository, and proceed as it follows:
Get the latest lookout-sdk from lookout/releases or just run:
$ wget -O - https://raw.githubusercontent.com/src-d/lookout-sdk/master/_tools/install-lookout-latest.sh | bashAnd then run:
$ ./lookout-sdk reviewIt will mock a Pull Request containing the changes made by HEAD over HEAD~1, and it will send it to lookout-terraform-analyzer that you ran in the previous step.