https://github.com/src-d/lookout-terraform-analyzer
This is a lookout analyzer that checks if your PR has been Terraform fmt'ed when submitting it.
https://github.com/src-d/lookout-terraform-analyzer
Last synced: about 2 months ago
JSON representation
This is a lookout analyzer that checks if your PR has been Terraform fmt'ed when submitting it.
- Host: GitHub
- URL: https://github.com/src-d/lookout-terraform-analyzer
- Owner: src-d
- License: mpl-2.0
- Created: 2018-10-01T15:06:02.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-06T09:15:03.000Z (almost 6 years ago)
- Last Synced: 2025-05-05T05:05:22.849Z (about 2 months ago)
- Language: Go
- Homepage:
- Size: 4.04 MB
- Stars: 5
- Watchers: 2
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Terraform (fmt) Lookout Analyzer
================================This is a [lookout](https://github.com/src-d/lookout) analyzer that checks if your PR has been Terraform fmt'ed when submitting it.
## Usage
Install the analyzer, and run it:
```shell
$ go install github.com/src-d/lookout-terraform-analyzer/cmd/lookout-terraform-analyzer
$ lookout-terraform-analyzer
```The analyzer will start listening for pull review requests from lookout.
### test it
To test it, `cd` to the desired repository, and proceed as it follows:
Get the latest `lookout-sdk` from [lookout/releases](https://github.com/src-d/lookout/releases) or just run:
```shell
$ wget -O - https://raw.githubusercontent.com/src-d/lookout-sdk/master/_tools/install-lookout-latest.sh | bash
```And then run:
```shell
$ ./lookout-sdk review
```It 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](#usage).