From 47fdfd5196cd24a23b30afe1d88969ffb413ab59 Mon Sep 17 00:00:00 2001 From: Cameron Moore Date: Mon, 25 Sep 2017 21:25:33 -0500 Subject: Clean up lint in various packages Changes fall into one of the following: - gofmt -s - receiver name is inconsistent - omit unused 2nd value from range - godoc comment formed incorrectly - err assigned and not used - if block ends with a return statement followed by else --- source/filesystem.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source') diff --git a/source/filesystem.go b/source/filesystem.go index 446d8c06d..e6e354e99 100644 --- a/source/filesystem.go +++ b/source/filesystem.go @@ -158,14 +158,14 @@ func (f *Filesystem) avoid(filePath string) bool { return false } -func (s SourceSpec) isNonProcessablePath(filePath string) bool { +func (sp SourceSpec) isNonProcessablePath(filePath string) bool { base := filepath.Base(filePath) if strings.HasPrefix(base, ".") || strings.HasPrefix(base, "#") || strings.HasSuffix(base, "~") { return true } - ignoreFiles := cast.ToStringSlice(s.Cfg.Get("ignoreFiles")) + ignoreFiles := cast.ToStringSlice(sp.Cfg.Get("ignoreFiles")) if len(ignoreFiles) > 0 { for _, ignorePattern := range ignoreFiles { match, err := regexp.MatchString(ignorePattern, filePath) -- cgit v1.2.3