printer

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2019 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checkstyle added in v0.3.3

type Checkstyle struct {
	XMLName xml.Name `xml:"checkstyle"`
	Files   []File   `xml:"file"`
}

type Error added in v0.3.3

type Error struct {
	Detector string `xml:"detector,attr"`
	Line     int    `xml:"line,attr"`
	Severity string `xml:"severity,attr"`
	Message  string `xml:"message,attr"`
	Link     string `xml:"link,attr"`
}

type File added in v0.3.3

type File struct {
	Name   string  `xml:"name,attr"`
	Errors []Error `xml:"error"`
}

type Printer

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

func NewPrinter

func NewPrinter(stdout io.Writer, stderr io.Writer) *Printer

func (*Printer) CheckstylePrint added in v0.3.3

func (p *Printer) CheckstylePrint(issues []*issue.Issue)

func (*Printer) DefaultPrint

func (p *Printer) DefaultPrint(issues []*issue.Issue, quiet bool)

func (*Printer) JSONPrint

func (p *Printer) JSONPrint(issues []*issue.Issue)

func (*Printer) Print

func (p *Printer) Print(issues []*issue.Issue, format string, quiet bool)

type PrinterIF added in v0.2.1

type PrinterIF interface {
	Print(issues []*issue.Issue, format string, quiet bool)
}

Jump to

Keyboard shortcuts

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