Documentation
¶
Index ¶
- Variables
- type LintRuleErrorsList
- func (l *LintRuleErrorsList) Add(template string, a ...any) *LintRuleErrorsList
- func (l *LintRuleErrorsList) ConvertToError() error
- func (l *LintRuleErrorsList) Critical() bool
- func (l *LintRuleErrorsList) Merge(e *LintRuleErrorsList)
- func (l *LintRuleErrorsList) WithModule(moduleID string) *LintRuleErrorsList
- func (l *LintRuleErrorsList) WithObjectID(objectID string) *LintRuleErrorsList
- func (l *LintRuleErrorsList) WithValue(value any) *LintRuleErrorsList
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 ¶
func (l *LintRuleErrorsList) Merge(e *LintRuleErrorsList)
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
Click to show internal directories.
Click to hide internal directories.