6479f4ae46a60e8f984e3db7f420cabb5238e91e
[dotfiles/.git] / 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 }