Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MatchPattern ¶
MatchPattern checks if the pattern string matches the input pattern. The wildcard '*' in the pattern matches any sequence of characters.
Types ¶
type Rule ¶
type Rule struct {
// contains filtered or unexported fields
}
Rule represents a rule for ignoring vulnerabilities.
type RuleSectionParser ¶
RuleSectionParser defines the interface for parsing ignore rules.
type Rules ¶
type Rules []Rule
func Parse ¶
func Parse(src, path string, parsers ...RuleSectionParser) Rules
Parse parses the configuration file and returns the Rules
type StringMatchParser ¶
type StringMatchParser struct { SectionKey string // contains filtered or unexported fields }
func (*StringMatchParser) Key ¶
func (s *StringMatchParser) Key() string
func (*StringMatchParser) Param ¶
func (s *StringMatchParser) Param() any
func (*StringMatchParser) Parse ¶
func (s *StringMatchParser) Parse(str string) bool
Click to show internal directories.
Click to hide internal directories.