mirror of
https://github.com/mgechev/revive.git
synced 2025-01-10 03:17:11 +02:00
90f51530cc
This PR introduces a white & black lists of initialisms for the `var-naming` rule. Now the rule can be configured with: ```toml [rule.var-naming] arguments = [["ID"], ["VM", "BAR"]] ``` This way, the linter will ignore `customId` but will throw on `customVm` or `customBar`. Fix #41 |
||
---|---|---|
.. | ||
add-constant_test.go | ||
argument-limit_test.go | ||
bool-literal-in-expr_test.go | ||
confusing-naming_test.go | ||
confusing-results_test.go | ||
constant-logical-expr_test.go | ||
cyclomatic_test.go | ||
deep-exit_test.go | ||
disable-annotations_test.go | ||
empty-block_test.go | ||
file-header_test.go | ||
flag-param_test.go | ||
get-return_test.go | ||
golint_test.go | ||
max-public-structs_test.go | ||
modifies-param_test.go | ||
modifies-value-receiver_test.go | ||
redefines-builtin-id_test.go | ||
struct-tag_test.go | ||
superfluous-else_test.go | ||
unnecessary-stmt_test.go | ||
unreachable-code_test.go | ||
unused-param_test.go | ||
utils.go | ||
var-naming_test.go |