printers

package
v1.64.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: GPL-3.0 Imports: 18 Imported by: 16

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
}

Checkstyle prints issues in the Checkstyle format. https://checkstyle.org/config.html

func NewCheckstyle added in v1.7.1

func NewCheckstyle(log logutils.Log, w io.Writer) *Checkstyle

func (*Checkstyle) Print added in v1.7.1

func (p *Checkstyle) Print(issues []result.Issue) error

type CodeClimate added in v1.14.0

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

CodeClimate prints issues in the Code Climate format. https://github.com/codeclimate/platform/blob/HEAD/spec/analyzers/SPEC.md

func NewCodeClimate added in v1.14.0

func NewCodeClimate(log logutils.Log, w io.Writer) *CodeClimate

func (*CodeClimate) Print added in v1.14.0

func (p *CodeClimate) Print(issues []result.Issue) error

type GitHubAction added in v1.58.1

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

func NewGitHubAction added in v1.58.1

func NewGitHubAction(w io.Writer) *GitHubAction

NewGitHubAction output format outputs issues according to GitHub Action. Deprecated

func (*GitHubAction) Print added in v1.58.1

func (p *GitHubAction) Print(issues []result.Issue) error

type HTML added in v1.41.0

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

HTML prints issues in an HTML page. It uses the Cloudflare CDN (cdnjs) and React.

func NewHTML added in v1.41.0

func NewHTML(w io.Writer) *HTML

func (HTML) Print added in v1.41.0

func (p HTML) Print(issues []result.Issue) error

type InspectionInstance added in v1.52.0

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

InspectionInstance reports a specific defect, warning, error message. Includes location, description, and various optional and custom attributes. https://www.jetbrains.com/help/teamcity/service-messages.html#Inspection+Instance

func (InspectionInstance) Print added in v1.52.0

func (i InspectionInstance) Print(w io.Writer, replacer *strings.Replacer) (int, error)

type InspectionType added in v1.52.0

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

InspectionType is the unique description of the conducted inspection. Each specific warning or an error in code (inspection instance) has an inspection type. https://www.jetbrains.com/help/teamcity/service-messages.html#Inspection+Type

func (InspectionType) Print added in v1.52.0

func (i InspectionType) Print(w io.Writer, escaper *strings.Replacer) (int, error)

type JSON

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

JSON prints issues in a JSON representation.

func NewJSON

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

func (JSON) Print

func (p JSON) Print(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.64.0

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

JUnitXML prints issues in the JUnit XML format. There is no official specification for the JUnit XML file format, and various tools generate and support different flavors of this format. https://github.com/testmoapp/junitxml

func NewJUnitXML added in v1.64.0

func NewJUnitXML(w io.Writer, extended bool) *JUnitXML

func (JUnitXML) Print added in v1.64.0

func (p JUnitXML) Print(issues []result.Issue) error

type Printer

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

Printer prints issues

func NewPrinter added in v1.57.0

func NewPrinter(log logutils.Log, cfg *config.Output, reportData *report.Data, basePath string) (*Printer, error)

NewPrinter creates a new Printer.

func (*Printer) Print

func (c *Printer) Print(issues []result.Issue) error

Print prints issues based on the formats defined

type Sarif added in v1.59.0

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

Sarif prints issues in the SARIF format. https://sarifweb.azurewebsites.net/ https://docs.oasis-open.org/sarif/sarif/v2.1.0/

func NewSarif added in v1.59.0

func NewSarif(log logutils.Log, w io.Writer) *Sarif

func (*Sarif) Print added in v1.59.0

func (p *Sarif) Print(issues []result.Issue) error

type SarifOutput added in v1.59.0

type SarifOutput struct {
	Version string     `json:"version"`
	Schema  string     `json:"$schema"`
	Runs    []sarifRun `json:"runs"`
}

type Tab added in v1.4.1

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

Tab prints issues using tabulation as a field separator.

func NewTab added in v1.4.1

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

func (*Tab) Print added in v1.4.1

func (p *Tab) Print(issues []result.Issue) error

func (*Tab) SprintfColored added in v1.4.1

func (p *Tab) SprintfColored(ca color.Attribute, format string, args ...any) string

type TeamCity added in v1.52.0

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

TeamCity prints issues in the TeamCity format. https://www.jetbrains.com/help/teamcity/service-messages.html

func NewTeamCity added in v1.52.0

func NewTeamCity(log logutils.Log, w io.Writer) *TeamCity

NewTeamCity output format outputs issues according to TeamCity service message format.

func (*TeamCity) Print added in v1.52.0

func (p *TeamCity) Print(issues []result.Issue) error

type Text

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

Text prints issues with a human friendly representation.

func NewText

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

func (*Text) Print

func (p *Text) Print(issues []result.Issue) error

func (*Text) SprintfColored

func (p *Text) SprintfColored(ca color.Attribute, format string, args ...any) string

Jump to

Keyboard shortcuts

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