reporter

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 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 Format

type Format string

Format represents the output format

const (
	FormatText  Format = "text"
	FormatSARIF Format = "sarif"
	FormatJUnit Format = "junit"
)

type Reporter

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

Reporter is the interface for outputting violations

func New

func New(format Format) Reporter

New creates a reporter for the specified format

type TextReporter

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

TextReporter outputs violations in human-readable text format

func NewTextReporter

func NewTextReporter() *TextReporter

NewTextReporter creates a new text reporter

func (*TextReporter) Report

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

Report outputs violations in text format

Jump to

Keyboard shortcuts

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