discovery

package
v0.35.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

Variables

View Source
var ErrFileIsIgnored = errors.New("file was ignored")

Functions

This section is empty.

Types

type Entry added in v0.15.0

type Entry struct {
	ReportedPath   string
	SourcePath     string
	PathError      error
	ModifiedLines  []int
	Rule           parser.Rule
	Owner          string
	DisabledChecks []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