report

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: MIT Imports: 4 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Failure

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

Failure represents a lint error information.

func Failuref

func Failuref(
	pos meta.Position,
	ruleID string,
	format string,
	a ...interface{},
) Failure

Failuref creates a new Failure and the formatting works like fmt.Sprintf.

func (Failure) FilenameWithoutExt

func (f Failure) FilenameWithoutExt() string

FilenameWithoutExt returns a filename without the extension.

func (Failure) Message

func (f Failure) Message() string

Message returns a raw message.

func (Failure) Pos

func (f Failure) Pos() meta.Position

Pos returns a raw position.

func (Failure) RuleID

func (f Failure) RuleID() string

RuleID returns a rule ID.

func (Failure) String

func (f Failure) String() string

String stringifies Failure.

Jump to

Keyboard shortcuts

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