diff --git a/rule/confusing-naming.go b/rule/confusing-naming.go index 02b082168..daaf51c81 100644 --- a/rule/confusing-naming.go +++ b/rule/confusing-naming.go @@ -47,7 +47,7 @@ var allPkgs = packages{pkgs: make([]pkgMethods, 1)} type ConfusingNamingRule struct{} // Apply applies the rule to given file. -func (r *ConfusingNamingRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure { +func (*ConfusingNamingRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure { var failures []lint.Failure fileAst := file.AST pkgm := allPkgs.methodNames(file.Pkg) diff --git a/rule/confusing-results.go b/rule/confusing-results.go index 7430ce0ba..1b79ada9c 100644 --- a/rule/confusing-results.go +++ b/rule/confusing-results.go @@ -10,7 +10,7 @@ import ( type ConfusingResultsRule struct{} // Apply applies the rule to given file. -func (r *ConfusingResultsRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure { +func (*ConfusingResultsRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure { var failures []lint.Failure fileAst := file.AST