printers

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2018 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checkstyle

type Checkstyle struct{}

func NewCheckstyle

func NewCheckstyle() *Checkstyle

func (Checkstyle) Print

func (Checkstyle) Print(ctx context.Context, issues <-chan result.Issue) error

type JSON

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

func NewJSON

func NewJSON(rd *report.Data) *JSON

func (JSON) Print

func (p JSON) Print(ctx context.Context, issues <-chan result.Issue) error

type JSONResult

type JSONResult struct {
	Issues []result.Issue
	Report *report.Data
}

type Printer

type Printer interface {
	Print(ctx context.Context, issues <-chan result.Issue) error
}

type Tab

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

func NewTab

func NewTab(printLinterName bool, log logutils.Log) *Tab

func (*Tab) Print

func (p *Tab) Print(ctx context.Context, issues <-chan result.Issue) error

func (Tab) SprintfColored

func (p Tab) SprintfColored(ca color.Attribute, format string, args ...interface{}) string

type Text

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

func NewText

func NewText(printIssuedLine, useColors, printLinterName bool, log logutils.Log) *Text

func (*Text) Print

func (p *Text) Print(ctx context.Context, issues <-chan result.Issue) error

func (Text) SprintfColored

func (p Text) SprintfColored(ca color.Attribute, format string, args ...interface{}) string

Jump to

Keyboard shortcuts

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