formatter

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: MPL-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

type Formatter struct {
	Stdout  io.Writer
	Stderr  io.Writer
	Format  string
	NoColor bool
}

Formatter outputs appropriate results to stdout and stderr depending on the format

func (*Formatter) Print

func (f *Formatter) Print(issues tflint.Issues, err *tflint.Error, sources map[string][]byte)

Print outputs the given issues and errors according to configured format

type JSONOutput

type JSONOutput struct {
	Issues []jsonIssue `json:"issues"`
	Errors []jsonError `json:"errors"`
}

JSONOutput is a temporary structure for converting to JSON

Jump to

Keyboard shortcuts

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