Closed vikstrous2 closed 2 years ago
$ cat main.go package main func main() { i := 0 // // // // // // // // // // _ = i }
expected: no error actual:
$ golangci-lint run . --enable varnamelen main.go:4:2: variable name 'i' is too short for the scope of its usage (varnamelen) i := 0 ^
I confirmed that this reproduces on version 0.5.0
This is working as intended: It reports the usage of a short variable name over a longer span of source lines. The contents of the lines does not matter.
expected: no error actual:
I confirmed that this reproduces on version 0.5.0