mirror of
https://github.com/mgechev/revive.git
synced 2024-11-28 08:49:11 +02:00
22014c3f08
* Add rule 'range-val-address' * range-val-address: replace pick with visitor; avoid nesting; improve failure message * range-val-address: not all callexprs are bad. limit to 'append'
13 lines
228 B
Go
13 lines
228 B
Go
package test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/mgechev/revive/lint"
|
|
"github.com/mgechev/revive/rule"
|
|
)
|
|
|
|
func TestRangeValAddress(t *testing.T) {
|
|
testRule(t, "range-val-address", &rule.RangeValAddress{}, &lint.RuleConfig{})
|
|
}
|