github.com/golangci/go-tools@v0.0.0-20190318060251-af6baa5dc196/lint/testdata/src/Test/line-ignores.go (about) 1 package pkg 2 3 // the line directive should not affect the line ignores 4 5 //line random-file:1 6 func fn1() {} // MATCH "test problem" 7 8 //lint:ignore TEST1000 This should be ignored, because ... 9 func fn2() {} 10 11 //lint:ignore TEST1000 12 func fn3() {} // MATCH "test problem" 13 14 //lint:ignore TEST1000 ignore 15 func fn4() { 16 //lint:ignore TEST1000 ignore 17 var _ int 18 } 19 20 // MATCH:11 "malformed linter directive" 21 // MATCH:16 "this linter directive didn't match anything"