reporter

package
v0.0.100 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: MIT Imports: 4 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 is a reporter that writes JSON to an io.Writer.

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 as a JSON array.

type Reporter

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

Reporter defines the interface for reporting violations.

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) *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