github.com/vanstinator/golangci-lint@v0.0.0-20240223191551-cc572f00d9d1/pkg/result/processors/testdata/nolint_bad_names.go (about) 1 package testdata 2 3 import "math" 4 5 func RetErr() error { 6 return nil 7 } 8 9 func MissedErrorCheck() { 10 RetErr() //nolint:bad1,errcheck 11 } 12 13 //nolint:bad2,errcheck 14 func MissedErrorCheck2() { 15 RetErr() 16 } 17 18 func _() { 19 x := math.MinInt8 20 for { 21 _ = x 22 x = 0 //nolint:bad1,ineffassign 23 x = 0 24 } 25 }