mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-07-17 17:32:21 -04:00
17 lines
220 B
Go
17 lines
220 B
Go
//golangcitest:args -Evarnamelen
|
|
package testdata
|
|
|
|
import "math"
|
|
|
|
func varnamelen() {
|
|
x := math.MinInt8 // want "variable name 'x' is too short for the scope of its usage"
|
|
x++
|
|
x++
|
|
x++
|
|
x++
|
|
x++
|
|
x++
|
|
x++
|
|
x++
|
|
x++
|
|
}
|