mirror of
https://github.com/mgechev/revive.git
synced 2025-11-23 22:04:49 +02:00
refactor: rename files to follow Go convention
This commit is contained in:
committed by
chavacava
parent
c0d4d07ab6
commit
be95bfa705
@@ -10,29 +10,29 @@ import (
|
||||
func TestExportedWithDisableStutteringCheck(t *testing.T) {
|
||||
args := []any{"disableStutteringCheck"}
|
||||
|
||||
testRule(t, "exported-issue-555", &rule.ExportedRule{}, &lint.RuleConfig{Arguments: args})
|
||||
testRule(t, "exported_issue_555", &rule.ExportedRule{}, &lint.RuleConfig{Arguments: args})
|
||||
}
|
||||
|
||||
func TestExportedWithChecksOnMethodsOfPrivateTypes(t *testing.T) {
|
||||
args := []any{"checkPrivateReceivers"}
|
||||
|
||||
testRule(t, "exported-issue-552", &rule.ExportedRule{}, &lint.RuleConfig{Arguments: args})
|
||||
testRule(t, "exported_issue_552", &rule.ExportedRule{}, &lint.RuleConfig{Arguments: args})
|
||||
}
|
||||
|
||||
func TestExportedReplacingStuttersByRepetitive(t *testing.T) {
|
||||
args := []any{"sayRepetitiveInsteadOfStutters"}
|
||||
|
||||
testRule(t, "exported-issue-519", &rule.ExportedRule{}, &lint.RuleConfig{Arguments: args})
|
||||
testRule(t, "exported_issue_519", &rule.ExportedRule{}, &lint.RuleConfig{Arguments: args})
|
||||
}
|
||||
|
||||
func TestCheckPublicInterfaceOption(t *testing.T) {
|
||||
args := []any{"checkPublicInterface"}
|
||||
|
||||
testRule(t, "exported-issue-1002", &rule.ExportedRule{}, &lint.RuleConfig{Arguments: args})
|
||||
testRule(t, "exported_issue_1002", &rule.ExportedRule{}, &lint.RuleConfig{Arguments: args})
|
||||
}
|
||||
|
||||
func TestCheckDisablingOnDeclarationTypes(t *testing.T) {
|
||||
args := []any{"disableChecksOnConstants", "disableChecksOnFunctions", "disableChecksOnMethods", "disableChecksOnTypes", "disableChecksOnVariables"}
|
||||
|
||||
testRule(t, "exported-issue-1045", &rule.ExportedRule{}, &lint.RuleConfig{Arguments: args})
|
||||
testRule(t, "exported_issue_1045", &rule.ExportedRule{}, &lint.RuleConfig{Arguments: args})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user