1
0
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:
Marcin Federowicz
2025-04-25 10:32:03 +02:00
committed by GitHub
parent d8a47ba18e
commit 7ba6ad4fcd
3 changed files with 293 additions and 11 deletions

View File

@@ -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}}},
})
}
}