filter

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: AGPL-3.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	RuleIDInfo                    = "info"
	RuleIDNegationOnlyFilter      = "negation-only-filter"
	RuleIDUnrestrictedWildcard    = "unrestricted-wildcard"
	RuleIDUnanchoredRegex         = "unanchored-regex"
	RuleIDPathBoundaryBypass      = "path-boundary-bypass"
	RuleIDUnfilteredAutodiscovery = "unfiltered-autodiscovery"
	RuleIDLeadingSlashGlob        = "leading-slash-glob"
	RuleIDRegexEngineReview       = "regex-engine-review"
	RuleIDUnsupportedExtglob      = "unsupported-extglob"
	RuleIDUnresolvedVariable      = "unresolved-variable"
	RuleIDTopicOnlyAutodiscovery  = "topic-only-autodiscovery"
	RuleIDNamespaceScopeReview    = "namespace-scope-unresolved"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Finding

type Finding struct {
	RuleID   string
	Verdict  Verdict
	Pattern  string
	Evidence []string
	Message  string
}

func Analyze

func Analyze(filterValue string) []Finding

func AnalyzeTopicOnlyAutodiscovery added in v1.5.2

func AnalyzeTopicOnlyAutodiscovery(topics string) []Finding

func AnalyzeUnfilteredAutodiscovery added in v1.5.2

func AnalyzeUnfilteredAutodiscovery() []Finding

func AnalyzeWithGitLabProjectPaths added in v1.5.2

func AnalyzeWithGitLabProjectPaths(filterValue string, paths GitLabProjectPathValues) []Finding

type GitLabProjectPathValues added in v1.5.2

type GitLabProjectPathValues struct {
	ProjectPath      string
	ProjectNamespace string
	RootNamespace    string
}

type PatternKind

type PatternKind int
const (
	KindGlob PatternKind = iota
	KindRegex
	KindMalformedRegexFallback
)

type Verdict

type Verdict int
const (
	Safe Verdict = iota
	Vulnerable
	Broken
	NeedsReview
)

func (Verdict) String

func (verdict Verdict) String() string

Jump to

Keyboard shortcuts

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