Skip to content

Commit

Permalink
*: fix revive false positive with generics
Browse files Browse the repository at this point in the history
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
  • Loading branch information
hawkingrei committed Dec 6, 2022
1 parent d4aaf81 commit 42500b0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions build/linter/allrevive/analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ var defaultRules = []lint.Rule{
&rule.TimeNamingRule{},
//&rule.ContextKeysType{},
&rule.ContextAsArgumentRule{},
&rule.ReceiverNamingRule{},
}

var allRules = append([]lint.Rule{
Expand Down Expand Up @@ -119,7 +118,6 @@ var allRules = append([]lint.Rule{
&rule.TimeEqualRule{},
//&rule.BannedCharsRule{},
&rule.OptimizeOperandsOrderRule{},
&rule.ReceiverNamingRule{},
}, defaultRules...)

func run(pass *analysis.Pass) (any, error) {
Expand Down

0 comments on commit 42500b0

Please sign in to comment.