mirror of
https://github.com/tailscale/tailscale.git
synced 2025-03-27 19:43:01 +00:00
all: skip looking for package comments in .git/ repository (#15384)
This commit is contained in:
parent
e1078686b3
commit
6bbf98bef4
@ -26,6 +26,9 @@ func TestPackageDocs(t *testing.T) {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if fi.Mode().IsDir() && path == ".git" {
|
||||
return filepath.SkipDir // No documentation lives in .git
|
||||
}
|
||||
if fi.Mode().IsRegular() && strings.HasSuffix(path, ".go") {
|
||||
if strings.HasSuffix(path, "_test.go") {
|
||||
return nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user