Skip to content

Commit a2f2607

Browse files
committed
Don't typecheck directories that start with _
Go ignores them, so should we.
1 parent cb37c08 commit a2f2607

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/typecheck/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ func (c *collector) handlePath(path string, info os.FileInfo, err error) error {
266266
}
267267
if info.IsDir() {
268268
// Ignore hidden directories (.git, .cache, etc)
269-
if len(path) > 1 && path[0] == '.' {
269+
if len(path) > 1 && (path[0] == '.' || path[0] == '_') {
270270
return filepath.SkipDir
271271
}
272272
for _, dir := range c.ignoreDirs {

0 commit comments

Comments
 (0)