Skip to content
This repository was archived by the owner on Aug 25, 2018. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions fileutils/fileutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,12 @@ func ShouldSkip(path string, info os.FileInfo, tests, all bool) bool {
case tests && testdata:
skip = false

// https://github.com/FiloSottile/gvt/issues/85
// https://golang.org/cmd/go/#hdr-Description_of_package_lists
case strings.HasPrefix(name, "."):
skip = true
case strings.HasPrefix(name, "_") && name != "_testdata":
skip = true
// case strings.HasPrefix(name, "."):
// skip = true
// case strings.HasPrefix(name, "_") && name != "_testdata":
// skip = true

case !tests && name == "_testdata" && info.IsDir():
skip = true
Expand Down