func (p *ProspectorLog) isFileExcluded(file string) bool { if len(p.config.ExcludeFilesRegexp) > 0 { if harvester.MatchAnyRegexps(p.config.ExcludeFilesRegexp, file) { return true } } return false }
func (p *Prospector) isFileExcluded(file string) bool { config := &p.ProspectorConfig if len(config.ExcludeFilesRegexp) > 0 { if harvester.MatchAnyRegexps(config.ExcludeFilesRegexp, file) { return true } } return false }
// isFileExcluded checks if the given path should be excluded func (p *ProspectorLog) isFileExcluded(file string) bool { patterns := p.config.ExcludeFiles return len(patterns) > 0 && harvester.MatchAnyRegexps(patterns, file) }