discovery

package
v0.29.2 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileOwnerComment = "file/owner"
	RuleOwnerComment = "rule/owner"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry added in v0.15.0

type Entry struct {
	Path          string
	PathError     error
	ModifiedLines []int
	Rule          parser.Rule
	Owner         string
}

type GitBranchFinder added in v0.15.0

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

func NewGitBranchFinder added in v0.15.0

func NewGitBranchFinder(
	gitCmd git.CommandRunner,
	include []*regexp.Regexp,
	baseBranch string,
	maxCommits int,
	relaxed []*regexp.Regexp,
) GitBranchFinder

func (GitBranchFinder) Find added in v0.15.0

func (f GitBranchFinder) Find() (entries []Entry, err error)

type GlobFinder added in v0.15.0

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

func NewGlobFinder added in v0.15.0

func NewGlobFinder(patterns []string, relaxed []*regexp.Regexp) GlobFinder

func (GlobFinder) Find added in v0.15.0

func (f GlobFinder) Find() (entries []Entry, err error)

type RuleFinder added in v0.15.0

type RuleFinder interface {
	Find() ([]Entry, error)
}

Jump to

Keyboard shortcuts

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