errors

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WarningsOnly []string

Functions

This section is empty.

Types

type LintRuleErrorsList

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

func NewLinterRuleList added in v0.0.29

func NewLinterRuleList(linterID string, module ...string) *LintRuleErrorsList

func (*LintRuleErrorsList) Add

func (l *LintRuleErrorsList) Add(template string, a ...any) *LintRuleErrorsList

func (*LintRuleErrorsList) ConvertToError

func (l *LintRuleErrorsList) ConvertToError() error

ConvertToError converts LintRuleErrorsList to a single error. It returns an error that contains all errors from the list with a nice formatting. If the list is empty, it returns nil.

func (*LintRuleErrorsList) Critical

func (l *LintRuleErrorsList) Critical() bool

func (*LintRuleErrorsList) Merge

Merge merges another LintRuleErrorsList into current one, removing all duplicate errors.

func (*LintRuleErrorsList) WithModule added in v0.0.29

func (l *LintRuleErrorsList) WithModule(moduleID string) *LintRuleErrorsList

func (*LintRuleErrorsList) WithObjectID added in v0.0.29

func (l *LintRuleErrorsList) WithObjectID(objectID string) *LintRuleErrorsList

func (*LintRuleErrorsList) WithValue added in v0.0.29

func (l *LintRuleErrorsList) WithValue(value any) *LintRuleErrorsList

Jump to

Keyboard shortcuts

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