Don't typecheck directories that start with _

Go ignores them, so should we.
This commit is contained in:
Tim Hockin 2020-06-16 22:34:59 -07:00
parent cb37c08846
commit a2f26075c8

View File

@ -266,7 +266,7 @@ func (c *collector) handlePath(path string, info os.FileInfo, err error) error {
}
if info.IsDir() {
// Ignore hidden directories (.git, .cache, etc)
if len(path) > 1 && path[0] == '.' {
if len(path) > 1 && (path[0] == '.' || path[0] == '_') {
return filepath.SkipDir
}
for _, dir := range c.ignoreDirs {