Documentation
¶
Index ¶
- type PatternMatcherAdapter
- func (p *PatternMatcherAdapter) ConfigureExclusions(patterns []string)
- func (p *PatternMatcherAdapter) ConfigureInclusions(patterns []string)
- func (p *PatternMatcherAdapter) GetExclusionPatterns() []string
- func (p *PatternMatcherAdapter) GetInclusionPatterns() []string
- func (p *PatternMatcherAdapter) Matches(filePath string, patterns []string) bool
- func (p *PatternMatcherAdapter) ShouldExclude(filePath string) bool
- func (p *PatternMatcherAdapter) ShouldInclude(filePath string) bool
- func (p *PatternMatcherAdapter) ValidatePattern(pattern string) bool
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