review

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2016 License: AGPL-3.0 Imports: 16 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDiffRootPath

func GetDiffRootPath(filename string) string

func Output

func Output(outputType OutputFormat, outputPath string, issues []*api.Issue) string

finalOutput writes the output to a file at outputFile, unless outputFile == "cli", in which case it returns the output.

Types

type IssueConfirmer

type IssueConfirmer struct {
	// contains filtered or unexported fields
}

func NewConfirmer

func NewConfirmer(c *cli.Context, d *diffparser.Diff) (*IssueConfirmer, error)

func (IssueConfirmer) Confirm

func (c IssueConfirmer) Confirm(attempt int, issue *api.Issue) bool

confirm returns true if the issue should be kept or false if it should be dropped.

func (*IssueConfirmer) FormatPlainText

func (c *IssueConfirmer) FormatPlainText(issue *api.Issue) string

TODO(waigani) remove dependency on dev/tenet. Use a simpler internal representation of api.Issue.

type OutputFormat

type OutputFormat string

Jump to

Keyboard shortcuts

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