scan

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: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitFile

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

type Scanner

type Scanner interface {
	Scan() ([]match.Transgression, error)
	GetMetrics() *metrics.Metrics
	GetType() ScannerType
}

func NewScanner

func NewScanner(sc ScannerConfig) (Scanner, error)

type ScannerConfig

type ScannerConfig struct {
	Cfg            *config.Config
	Basepath       string
	Redacted       bool
	NoGit          bool
	FromHash       string
	ToHash         string
	Everything     bool
	CommitListFile string
}

type ScannerType

type ScannerType string
const (
	GitScanner       ScannerType = "gitScanner"
	DirectoryScanner ScannerType = "dirScanner"
	StringScanner    ScannerType = "stringScanner"
)

Jump to

Keyboard shortcuts

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