claudetool: ignore some gopls (/vet) checks
Fixes #95
Co-Authored-By: sketch <hello@sketch.dev>
Change-ID: s934f225a42c1d576k
diff --git a/claudetool/codereview/testdata/gopls_ignored_redundant_newline.txtar b/claudetool/codereview/testdata/gopls_ignored_redundant_newline.txtar
new file mode 100644
index 0000000..910e20c
--- /dev/null
+++ b/claudetool/codereview/testdata/gopls_ignored_redundant_newline.txtar
@@ -0,0 +1,24 @@
+Test that gopls/vet diagnostic checks for redundant newlines are completely filtered out with no errors reported
+
+See https://github.com/boldsoftware/sketch/issues/95 and https://github.com/golang/go/issues/57059
+
+-- p.go --
+package p
+
+-- .commit --
+Initial commit
+
+-- p.go --
+package p
+
+import "fmt"
+
+func F() {
+ fmt.Println("abc\n")
+}
+
+-- .commit --
+Add file with redundant newline error
+
+-- .run_test --
+OK
diff --git a/claudetool/codereview/testdata/vet_error_test.txtar b/claudetool/codereview/testdata/vet_error_test.txtar
index 6f2c7c7..eaaf0c2 100644
--- a/claudetool/codereview/testdata/vet_error_test.txtar
+++ b/claudetool/codereview/testdata/vet_error_test.txtar
@@ -1,4 +1,4 @@
-Check that vet errors are detected in a test run
+Verify that gopls provides vet error coverage
-- p.go --
package p
@@ -23,11 +23,6 @@
-- .run_test --
# Errors
-Test regressions detected between initial commit (INITIAL_COMMIT_HASH) and HEAD:
-
-1: sketch.dev: Previously had no tests, now has build/vet errors
-
-
Gopls check issues detected:
1. /PATH/TO/REPO/p.go:8:2-38: fmt.Printf format %s has arg 10 of wrong type int