Keep the rule, drop its second copy

This commit is contained in:
2026-09-21 22:02:28 +02:00
committed by Lillem4n
parent 3e5e01643f
commit 19274ccb2b
2 changed files with 9 additions and 15 deletions
-4
View File
@@ -23,8 +23,6 @@ func TestNoFunctionSpellsAMethod(t *testing.T) {
}
}
// namespaceFiles is every file declaring into the package namespace, its in-package
// tests included.
func namespaceFiles(t *testing.T) []*ast.File {
t.Helper()
pkg := packageDir(t)
@@ -32,8 +30,6 @@ func namespaceFiles(t *testing.T) []*ast.File {
return files
}
// declaredCalls is what each name is called as: a function, and the methods
// spelling it under the types declaring them.
func declaredCalls(files []*ast.File) (funcs map[string]bool, methods map[string][]string) {
funcs, methods = map[string]bool{}, map[string][]string{}
for _, f := range files {