Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.0.1-2020.1.5 / lint / testdata / src / Test / line-ignores.go
1 package pkg
2
3 // the line directive should not affect the line ignores
4
5 //line random-file:1
6 func fn1() {} // want `test problem`
7
8 //lint:ignore TEST1000 This should be ignored, because ...
9 //lint:ignore XXX1000 Testing that multiple linter directives work correctly
10 func fn2() {}
11
12 //lint:ignore TEST1000 // want `malformed linter directive`
13 func fn3() {} // want `test problem`
14
15 //lint:ignore TEST1000 ignore
16 func fn4() {
17         //lint:ignore TEST1000 ignore // want `this linter directive didn't match anything`
18         var _ int
19 }