reporter

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompactReporter

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

CompactReporter reports violations in a compact table.

func NewCompactReporter

func NewCompactReporter(out io.Writer) CompactReporter

NewCompactReporter creates a new CompactReporter.

func (CompactReporter) Publish

func (tr CompactReporter) Publish(r report.Report) error

Publish prints a compact report to the configured output.

type JSONReporter

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

JSONReporter reports violations as JSON.

func NewJSONReporter

func NewJSONReporter(out io.Writer) JSONReporter

NewJSONReporter creates a new JSONReporter.

func (JSONReporter) Publish

func (tr JSONReporter) Publish(r report.Report) error

Publish prints a JSON report to the configured output.

type PrettyReporter

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

PrettyReporter is a Reporter for representing reports as tables.

func NewPrettyReporter

func NewPrettyReporter(out io.Writer) PrettyReporter

NewPrettyReporter creates a new PrettyReporter.

func (PrettyReporter) Publish

func (tr PrettyReporter) Publish(r report.Report) error

Publish prints a pretty report to the configured output.

type Reporter

type Reporter interface {
	// Publish releases a report to any appropriate target
	Publish(report.Report) error
}

Reporter releases linter reports in a format decided by the implementation.

Jump to

Keyboard shortcuts

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