mirror of
https://github.com/mgechev/revive.git
synced 2025-11-23 22:04:49 +02:00
* imporve `var-naming` - add upperCaseConst option to allow UPPER_CASED constants #851 Co-authored-by: chavacava <salvadorcavadini+github@gmail.com>
This commit is contained in:
@@ -13,4 +13,9 @@ func TestVarNaming(t *testing.T) {
|
||||
})
|
||||
|
||||
testRule(t, "var-naming_test", &rule.VarNamingRule{}, &lint.RuleConfig{})
|
||||
|
||||
testRule(t, "var-naming_upperCaseConst-false", &rule.VarNamingRule{}, &lint.RuleConfig{})
|
||||
testRule(t, "var-naming_upperCaseConst-true", &rule.VarNamingRule{}, &lint.RuleConfig{
|
||||
Arguments: []interface{}{[]interface{}{}, []interface{}{}, []interface{}{map[string]interface{}{"upperCaseConst": true}}},
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user