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.
type FestiveReporter ¶ added in v0.14.0
type FestiveReporter struct {
// contains filtered or unexported fields
}
FestiveReporter reports violations in a format suitable for the holidays.
func NewFestiveReporter ¶ added in v0.14.0
func NewFestiveReporter(out io.Writer) FestiveReporter
NewFestiveReporter creates a new FestiveReporter.
type GitHubReporter ¶ added in v0.8.0
type GitHubReporter struct {
// contains filtered or unexported fields
}
GitHubReporter reports violations in a format suitable for GitHub Actions.
func NewGitHubReporter ¶ added in v0.8.0
func NewGitHubReporter(out io.Writer) GitHubReporter
NewGitHubReporter creates a new GitHubReporter.
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.
type JUnitReporter ¶ added in v0.25.0
type JUnitReporter struct {
// contains filtered or unexported fields
}
JUnitReporter reports violations in the JUnit XML format (https://github.com/junit-team/junit5/blob/main/platform-tests/src/test/resources/jenkins-junit.xsd).
func NewJUnitReporter ¶ added in v0.25.0
func NewJUnitReporter(out io.Writer) JUnitReporter
NewJUnitReporter creates a new JUnitReporter.
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.
type Reporter ¶
type Reporter interface { // Publish releases a report to any appropriate target Publish(context.Context, report.Report) error }
Reporter releases linter reports in a format decided by the implementation.
type SarifReporter ¶ added in v0.14.0
type SarifReporter struct {
// contains filtered or unexported fields
}
SarifReporter reports violations in the SARIF (https://sarifweb.azurewebsites.net/) format.
func NewSarifReporter ¶ added in v0.14.0
func NewSarifReporter(out io.Writer) SarifReporter
NewSarifReporter creates a new SarifReporter.