.gitignore added
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.1.1 / lintcmd / testdata / src / Test / line-ignores.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.1.1/lintcmd/testdata/src/Test/line-ignores.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.1.1/lintcmd/testdata/src/Test/line-ignores.go
new file mode 100644 (file)
index 0000000..6479f4a
--- /dev/null
@@ -0,0 +1,19 @@
+package pkg
+
+// the line directive should not affect the line ignores
+
+//line random-file:1
+func fn1() {} // want `test problem`
+
+//lint:ignore TEST1000 This should be ignored, because ...
+//lint:ignore XXX1000 Testing that multiple linter directives work correctly
+func fn2() {}
+
+//lint:ignore TEST1000 // want `malformed linter directive`
+func fn3() {} // want `test problem`
+
+//lint:ignore TEST1000 ignore
+func fn4() {
+       //lint:ignore TEST1000 ignore // want `this linter directive didn't match anything`
+       var _ int
+}