| Josh Bleecher Snyder | 833a0f8 | 2025-04-24 18:39:36 +0000 | [diff] [blame] | 1 | Only new gopls issues should be reported when existing issues are present |
| 2 | |
| 3 | -- p.go -- |
| 4 | package p |
| 5 | |
| 6 | func F() { |
| 7 | x := 42 |
| 8 | } |
| 9 | |
| 10 | -- .commit -- |
| 11 | Initial commit with existing gopls issue |
| 12 | |
| 13 | -- p.go -- |
| 14 | package p |
| 15 | |
| 16 | func F() { |
| 17 | x := 42 |
| 18 | } |
| 19 | |
| 20 | func G() { |
| 21 | panic("i went down down down") |
| 22 | panic("burning ring of fire") |
| 23 | } |
| 24 | |
| 25 | -- .commit -- |
| 26 | Add a new function with a new gopls issue |
| 27 | |
| 28 | -- .run_test -- |
| Josh Bleecher Snyder | ffecb1e | 2025-04-28 18:59:14 +0000 | [diff] [blame] | 29 | # Errors |
| 30 | |
| Josh Bleecher Snyder | 833a0f8 | 2025-04-24 18:39:36 +0000 | [diff] [blame] | 31 | Gopls check issues detected: |
| 32 | |
| 33 | 1. /PATH/TO/REPO/p.go:9:2-31: unreachable code |
| 34 | |
| 35 | 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. |
| 36 | |
| 37 | |
| 38 | Please fix before proceeding. |