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