terraformanalyzer

package module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2019 License: MPL-2.0 Imports: 8 Imported by: 0

README

Terraform (fmt) Lookout Analyzer

This is a lookout analyzer that checks if your PR has been Terraform fmt'ed when submitting it.

Usage

Install the analyzer, and run it:

$ 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 or just run:

$ wget -O - https://raw.githubusercontent.com/src-d/lookout-sdk/master/_tools/install-lookout-latest.sh | bash

And then run:

$ ./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.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

type Analyzer struct {
	DataClient pb.DataClient
	Version    string
}

func (Analyzer) NotifyPushEvent

func (a Analyzer) NotifyPushEvent(context.Context, *pb.PushEvent) (*pb.EventResponse, error)

func (Analyzer) NotifyReviewEvent

func (a Analyzer) NotifyReviewEvent(ctx context.Context, review *pb.ReviewEvent) (*pb.EventResponse, error)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL