printers

package
v1.45.0-rel Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: GPL-3.0 Imports: 14 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 v1.7.1

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

func NewCheckstyle added in v1.7.1

func NewCheckstyle(w io.Writer) *Checkstyle

func (Checkstyle) Print added in v1.7.1

func (p Checkstyle) Print(ctx context.Context, issues []result.Issue) error

type CodeClimate added in v1.45.0

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

func NewCodeClimate added in v1.45.0

func NewCodeClimate(w io.Writer) *CodeClimate

func (CodeClimate) Print added in v1.45.0

func (p CodeClimate) Print(ctx context.Context, issues []result.Issue) error

type CodeClimateIssue added in v1.45.0

type CodeClimateIssue struct {
	Description string `json:"description"`
	Severity    string `json:"severity,omitempty"`
	Fingerprint string `json:"fingerprint"`
	Location    struct {
		Path  string `json:"path"`
		Lines struct {
			Begin int `json:"begin"`
		} `json:"lines"`
	} `json:"location"`
}

CodeClimateIssue is a subset of the Code Climate spec - https://github.com/codeclimate/spec/blob/master/SPEC.md#data-types It is just enough to support GitLab CI Code Quality - https://docs.gitlab.com/ee/user/project/merge_requests/code_quality.html

type HTML added in v1.45.0

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

func NewHTML added in v1.45.0

func NewHTML(w io.Writer) *HTML

func (HTML) Print added in v1.45.0

func (p HTML) Print(_ context.Context, issues []result.Issue) error

type JSON

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

func NewJSON

func NewJSON(rd *report.Data, w io.Writer) *JSON

func (JSON) Print

func (p JSON) Print(ctx context.Context, issues []result.Issue) error

type JSONResult added in v1.6.1

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

type JunitXML added in v1.45.0

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

func NewJunitXML added in v1.45.0

func NewJunitXML(w io.Writer) *JunitXML

func (JunitXML) Print added in v1.45.0

func (p JunitXML) Print(ctx context.Context, issues []result.Issue) error

type Printer

type Printer interface {
	Print(ctx context.Context, issues []result.Issue) error
}

func NewGithub added in v1.45.0

func NewGithub(w io.Writer) Printer

NewGithub output format outputs issues according to GitHub actions format: https://help.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-error-message

type Tab added in v1.4.1

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

func NewTab added in v1.4.1

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

func (*Tab) Print added in v1.4.1

func (p *Tab) Print(ctx context.Context, issues []result.Issue) error

func (Tab) SprintfColored added in v1.4.1

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, w io.Writer) *Text

func (*Text) Print

func (p *Text) Print(ctx context.Context, issues []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