Skip to content

Commit

Permalink
Merge pull request #45 from d4l3k/ignore-vendor
Browse files Browse the repository at this point in the history
ignore vendor/ to avoid issues with transitive dependencies
  • Loading branch information
d4l3k authored Oct 1, 2017
2 parents 394913b + 48ddd76 commit f6e6fbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func main() {
testsRequired := cmdArgs[0] == "test"
for _, dir := range goDirs {
filepath.Walk(dir, func(path string, info os.FileInfo, err error) error {
if !testsRequired && strings.HasSuffix(path, "_test.go") || !strings.HasSuffix(path, ".go") {
if !testsRequired && strings.HasSuffix(path, "_test.go") || !strings.HasSuffix(path, ".go") || strings.Contains(path, "vendor/") {
return nil
}
for _, file := range processedFiles {
Expand Down

0 comments on commit f6e6fbd

Please sign in to comment.