Documentation ¶
Index ¶
- type Formatter
- func (f *Formatter) PrettyPrintStderr(output string)
- func (f *Formatter) Print(issues tflint.Issues, err error, sources map[string][]byte)
- func (f *Formatter) PrintErrorParallel(err error, sources map[string][]byte)
- func (f *Formatter) PrintParallel(issues tflint.Issues, sources map[string][]byte) error
- type JSONError
- type JSONIssue
- type JSONOutput
- type JSONPos
- type JSONRange
- type JSONRule
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 Fix bool NoColor bool // contains filtered or unexported fields }
Formatter outputs appropriate results to stdout and stderr depending on the format
func (*Formatter) PrettyPrintStderr ¶ added in v0.51.0
PrettyPrintStderr outputs the given output to stderr with an indent.
func (*Formatter) PrintErrorParallel ¶ added in v0.51.0
PrintErrorParallel outputs an error occurred in parallel workers. Depending on the configured format, errors may not be output immediately. This function itself is called serially, so changes to f.errInParallel are safe.
func (*Formatter) PrintParallel ¶ added in v0.51.0
PrintParallel outputs issues and errors in parallel workers. Errors stored with PrintErrorParallel are output, but in the default format they are output in real time, so they are ignored.
type JSONError ¶ added in v0.30.0
type JSONError struct { Summary string `json:"summary,omitempty"` Message string `json:"message"` Severity string `json:"severity"` Range *JSONRange `json:"range,omitempty"` // pointer so omitempty works }
JSONError is a temporary structure for converting errors to JSON.
type JSONIssue ¶ added in v0.30.0
type JSONIssue struct { Rule JSONRule `json:"rule"` Message string `json:"message"` Range JSONRange `json:"range"` Callers []JSONRange `json:"callers"` }
JSONIssue is a temporary structure for converting TFLint issues to JSON.
type JSONOutput ¶
JSONOutput is a temporary structure for converting to JSON.