blob: dc47bad682dbd072de8698c8088dca9a596674c0 [file] [log] [blame]
Josh Bleecher Snyderde5f7442025-05-15 18:32:32 +00001Verify that gopls provides vet error coverage
Josh Bleecher Snyder833a0f82025-04-24 18:39:36 +00002
3-- p.go --
4package p
5
6-- .commit --
7Initial commit
8
9-- p.go --
10package p
11
12import (
13 "fmt"
14)
15
16func F() {
17 fmt.Printf("Not a string: %s\n", 10)
18}
19
20-- .commit --
21Add vet error
22
23-- .run_test --
Josh Bleecher Snyderffecb1e2025-04-28 18:59:14 +000024# Errors
25
Josh Bleecher Snyder833a0f82025-04-24 18:39:36 +000026Gopls check issues detected:
27
Philip Zeyligerd4eea222025-06-16 21:13:21 -0700281. /PATH/TO/REPO/p.go:8:28-30: fmt.Printf format %s has arg 10 of wrong type int
Josh Bleecher Snyder833a0f82025-04-24 18:39:36 +000029
30IMPORTANT: Only fix new gopls check issues in parts of the code that you have already edited. Do not change existing code that was not part of your current edits.
31
32
33Please fix before proceeding.