reporter

package
v0.1.60 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONReporter added in v0.0.3

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

JSONReporter reports violations in JSON format.

func NewJSONReporter added in v0.0.3

func NewJSONReporter(writer io.Writer) *JSONReporter

NewJSONReporter creates a new JSONReporter.

func (*JSONReporter) Report added in v0.0.3

func (r *JSONReporter) Report(violations []katas.Violation) error

Report prints the violations to the writer in JSON format.

type Reporter

type Reporter interface {
	Report(violations []katas.Violation) error
}

Reporter defines the interface for reporting violations.

type SarifReporter added in v0.0.123

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

SarifReporter reports violations in SARIF format.

func NewSarifReporter added in v0.0.123

func NewSarifReporter(writer io.Writer, filename string) *SarifReporter

NewSarifReporter creates a new SarifReporter.

func (*SarifReporter) Report added in v0.0.123

func (r *SarifReporter) Report(violations []katas.Violation) error

Report prints the violations to the writer in SARIF format.

type TextReporter

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

TextReporter is a simple reporter that writes plain text to an io.Writer.

func NewTextReporter

func NewTextReporter(writer io.Writer, filename, source string, config config.Config) *TextReporter

NewTextReporter creates a new TextReporter.

func (*TextReporter) Report

func (r *TextReporter) Report(violations []katas.Violation) error

Report prints the violations to the writer.

Jump to

Keyboard shortcuts

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