Documentation
¶
Index ¶
- type NoInvalidRegexpRule
- func (r *NoInvalidRegexpRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure
- func (r *NoInvalidRegexpRule) ApplyToNode(file *lint.File, node ast.Node, _ lint.Arguments) []lint.Failure
- func (*NoInvalidRegexpRule) CacheTier() rulecache.CacheTier
- func (*NoInvalidRegexpRule) Group() string
- func (*NoInvalidRegexpRule) Name() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoInvalidRegexpRule ¶
type NoInvalidRegexpRule struct{}
NoInvalidRegexpRule validates that arguments to regexp.Compile, regexp.MustCompile, regexp.Match, and related functions are valid regular expressions.
func (*NoInvalidRegexpRule) ApplyToNode ¶
func (r *NoInvalidRegexpRule) ApplyToNode(file *lint.File, node ast.Node, _ lint.Arguments) []lint.Failure
ApplyToNode applies the rule while walking the AST together with other rules.
func (*NoInvalidRegexpRule) CacheTier ¶
func (*NoInvalidRegexpRule) CacheTier() rulecache.CacheTier
CacheTier returns the cache tier for this rule.
func (*NoInvalidRegexpRule) Group ¶
func (*NoInvalidRegexpRule) Group() string
Group returns the rule group.
func (*NoInvalidRegexpRule) Name ¶
func (*NoInvalidRegexpRule) Name() string
Name returns the rule name.
Click to show internal directories.
Click to hide internal directories.