rules

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileRule

type FileRule struct {
	Path        string
	Contains    *types.Regexp
	NotContains *types.Regexp
	Exists      *bool
}

func NewFileRule

func NewFileRule(config config.FileRule) *FileRule

func (*FileRule) Do

func (rule *FileRule) Do(ctx context.Context, project project.Project) error

type GrepRule added in v0.0.5

type GrepRule struct {
	Path            string
	Include         string
	Pattern         string
	ExcludeDir      string
	ExtendedRegexp  bool
	Recursive       bool
	Match           bool
	SkipNotFound    bool
	NullData        bool
	InsensitiveCase bool
}

func NewGrepRule added in v0.0.5

func NewGrepRule(config config.GrepRule) *GrepRule

func (*GrepRule) Do added in v0.0.5

func (rule *GrepRule) Do(ctx context.Context, project project.Project) error

type ProjectRule added in v0.0.9

type ProjectRule struct {
	// contains filtered or unexported fields
}

func NewProjectRule added in v0.0.9

func NewProjectRule(config config.ProjectRule) *ProjectRule

func (*ProjectRule) Do added in v0.0.9

func (rule *ProjectRule) Do(ctx context.Context, project project.Project) error

type SimpleRule

type SimpleRule struct {
	// contains filtered or unexported fields
}

func NewSimpleRule

func NewSimpleRule(result bool) *SimpleRule

func (*SimpleRule) Do

func (rule *SimpleRule) Do(ctx context.Context, project project.Project) error

Jump to

Keyboard shortcuts

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