mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-01 14:02:51 +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 {
|
if err != nil {
|
||||||
return err
|
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 fi.Mode().IsRegular() && strings.HasSuffix(path, ".go") {
|
||||||
if strings.HasSuffix(path, "_test.go") {
|
if strings.HasSuffix(path, "_test.go") {
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user