mirror of
https://github.com/mgechev/revive.git
synced 2025-11-25 22:12:38 +02:00
code cleanup: replace interface{} with any (#906)
This commit is contained in:
committed by
GitHub
parent
5ccebe86c2
commit
36c2ee2718
@@ -8,19 +8,19 @@ import (
|
||||
)
|
||||
|
||||
func TestExportedWithDisableStutteringCheck(t *testing.T) {
|
||||
args := []interface{}{"disableStutteringCheck"}
|
||||
args := []any{"disableStutteringCheck"}
|
||||
|
||||
testRule(t, "exported-issue-555", &rule.ExportedRule{}, &lint.RuleConfig{Arguments: args})
|
||||
}
|
||||
|
||||
func TestExportedWithChecksOnMethodsOfPrivateTypes(t *testing.T) {
|
||||
args := []interface{}{"checkPrivateReceivers"}
|
||||
args := []any{"checkPrivateReceivers"}
|
||||
|
||||
testRule(t, "exported-issue-552", &rule.ExportedRule{}, &lint.RuleConfig{Arguments: args})
|
||||
}
|
||||
|
||||
func TestExportedReplacingStuttersByRepetitive(t *testing.T) {
|
||||
args := []interface{}{"sayRepetitiveInsteadOfStutters"}
|
||||
args := []any{"sayRepetitiveInsteadOfStutters"}
|
||||
|
||||
testRule(t, "exported-issue-519", &rule.ExportedRule{}, &lint.RuleConfig{Arguments: args})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user