no_invalid_regexp

package
v0.0.0-...-8888feb Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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) Apply

func (r *NoInvalidRegexpRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure

Apply applies the rule to given file.

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

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.

Jump to

Keyboard shortcuts

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