Example #1
0
func (p *ProspectorLog) isFileExcluded(file string) bool {

	if len(p.config.ExcludeFilesRegexp) > 0 {

		if harvester.MatchAnyRegexps(p.config.ExcludeFilesRegexp, file) {
			return true
		}
	}

	return false
}
Example #2
0
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
}
Example #3
0
// 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)
}