mirror of
https://github.com/mgechev/revive.git
synced 2025-11-25 22:12:38 +02:00
var-naming: remove regex from code (#1322)
Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com> Co-authored-by: Oleksandr Redko <oleksandr.red+github@gmail.com>
This commit is contained in:
committed by
GitHub
parent
d8a47ba18e
commit
7ba6ad4fcd
@@ -41,3 +41,12 @@ func TestVarNaming(t *testing.T) {
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
func BenchmarkUpperCaseConstTrue(b *testing.B) {
|
||||
var t *testing.T
|
||||
for i := 0; i < b.N; i++ {
|
||||
testRule(t, "var_naming_upper_case_const_true", &rule.VarNamingRule{}, &lint.RuleConfig{
|
||||
Arguments: []any{[]any{}, []any{}, []any{map[string]any{"upperCaseConst": true}}},
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user