1
0
mirror of https://github.com/mgechev/revive.git synced 2024-12-12 10:44:59 +02:00
revive/testdata/add_constant_default.go

13 lines
274 B
Go
Raw Normal View History

package fixtures
func foo() {
a = "ignore"
b = "ignore"
c = "match"
d = "match"
e = "match" // MATCH /string literal "match" appears, at least, 3 times, create a named constant for it/
f = 5 // MATCH /avoid magic numbers like '5', create a named constant for it/
}