Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeOverride ¶
type Exclude ¶
type Exclude struct { FQNs expressions `yam:"FQNs"` Labels keyVals `yaml:"labels"` Annotations keyVals `yaml:"annotations"` Codes expressions `yaml:"codes"` Containers expressions `yaml:"containers"` }
type Exclusions ¶
type Exclusions struct { // Excludes tracks exclusions Global Exclude `yaml:"global"` // Linters tracks exclusions Linters Linters `yaml:"linters"` }
func NewExclusions ¶
func NewExclusions() Exclusions
func (Exclusions) Dump ¶
func (e Exclusions) Dump()
func (Exclusions) Match ¶
func (e Exclusions) Match(spec Spec) bool
type Expression ¶
type Expression string
func (Expression) IsRX ¶
func (e Expression) IsRX() bool
func (Expression) MatchRX ¶
func (e Expression) MatchRX(s string) bool
type Level ¶
type Level int
Level tracks lint check level.
func ToIssueLevel ¶
ToIssueLevel convert a string to a issue level.
func (Level) ToHumanLevel ¶
type LinterExcludes ¶
type LinterExcludes struct { Codes expressions `yaml:"codes"` Instances Excludes `yaml:"instances"` }
func (LinterExcludes) Dump ¶
func (l LinterExcludes) Dump(indent string)
type Linters ¶
type Linters map[string]LinterExcludes
Click to show internal directories.
Click to hide internal directories.