pattern_matcher

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2025 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PatternMatcherAdapter

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

PatternMatcherAdapter implements the FilePatternMatcher interface

func NewPatternMatcherAdapter

func NewPatternMatcherAdapter() *PatternMatcherAdapter

NewPatternMatcherAdapter creates a new pattern matcher adapter

func (*PatternMatcherAdapter) ConfigureExclusions

func (p *PatternMatcherAdapter) ConfigureExclusions(patterns []string)

ConfigureExclusions updates the exclusion patterns

func (*PatternMatcherAdapter) ConfigureInclusions

func (p *PatternMatcherAdapter) ConfigureInclusions(patterns []string)

ConfigureInclusions updates the inclusion patterns

func (*PatternMatcherAdapter) GetExclusionPatterns

func (p *PatternMatcherAdapter) GetExclusionPatterns() []string

GetExclusionPatterns returns the current exclusion patterns

func (*PatternMatcherAdapter) GetInclusionPatterns

func (p *PatternMatcherAdapter) GetInclusionPatterns() []string

GetInclusionPatterns returns the current inclusion patterns

func (*PatternMatcherAdapter) Matches

func (p *PatternMatcherAdapter) Matches(filePath string, patterns []string) bool

Matches checks if a file matches any of the given patterns

func (*PatternMatcherAdapter) ShouldExclude

func (p *PatternMatcherAdapter) ShouldExclude(filePath string) bool

ShouldExclude checks if a file should be excluded

func (*PatternMatcherAdapter) ShouldInclude

func (p *PatternMatcherAdapter) ShouldInclude(filePath string) bool

ShouldInclude checks if a file should be included

func (*PatternMatcherAdapter) ValidatePattern

func (p *PatternMatcherAdapter) ValidatePattern(pattern string) bool

ValidatePattern validates a glob pattern

Jump to

Keyboard shortcuts

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