match

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Unlicense Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Matcher

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

type MatcherController

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

func NewMatcherController

func NewMatcherController(cfg *config.Config, metrics *metrics.Metrics, redacted bool) *MatcherController

func (*MatcherController) Evaluate

func (mc *MatcherController) Evaluate(filename, content string, commit *object.Commit) error

func (*MatcherController) EvaluateString

func (mc *MatcherController) EvaluateString(content string) result.StringScanResult

func (*MatcherController) Transgressions

func (mc *MatcherController) Transgressions() []Transgression

type Matchers

type Matchers []*Matcher

type Transgression

type Transgression struct {
	LineContent      string
	Filename         string
	Hash             string
	Match            string
	MatchDescription string
	RedactedContent  string
	Committer        string
	CommitterEmail   string
	CommitHash       string
	ExcludeRule      string
	Committed        string
	LineNo           int
}

Jump to

Keyboard shortcuts

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