github.com/chenfeining/golangci-lint@v1.0.2-0.20230730162517-14c6c67868df/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 }