| Josh Bleecher Snyder | de5f744 | 2025-05-15 18:32:32 +0000 | [diff] [blame] | 1 | Verify that gopls provides vet error coverage |
| Josh Bleecher Snyder | 833a0f8 | 2025-04-24 18:39:36 +0000 | [diff] [blame] | 2 | |
| 3 | -- p.go -- |
| 4 | package p |
| 5 | |
| 6 | -- .commit -- |
| 7 | Initial commit |
| 8 | |
| 9 | -- p.go -- |
| 10 | package p |
| 11 | |
| 12 | import ( |
| 13 | "fmt" |
| 14 | ) |
| 15 | |
| 16 | func F() { |
| 17 | fmt.Printf("Not a string: %s\n", 10) |
| 18 | } |
| 19 | |
| 20 | -- .commit -- |
| 21 | Add vet error |
| 22 | |
| 23 | -- .run_test -- |
| Josh Bleecher Snyder | ffecb1e | 2025-04-28 18:59:14 +0000 | [diff] [blame] | 24 | # Errors |
| 25 | |
| Josh Bleecher Snyder | 833a0f8 | 2025-04-24 18:39:36 +0000 | [diff] [blame] | 26 | Gopls check issues detected: |
| 27 | |
| Philip Zeyliger | d4eea22 | 2025-06-16 21:13:21 -0700 | [diff] [blame] | 28 | 1. /PATH/TO/REPO/p.go:8:28-30: fmt.Printf format %s has arg 10 of wrong type int |
| Josh Bleecher Snyder | 833a0f8 | 2025-04-24 18:39:36 +0000 | [diff] [blame] | 29 | |
| 30 | IMPORTANT: 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 | |
| 33 | Please fix before proceeding. |