1
0
mirror of https://github.com/golang/go synced 2024-11-06 19:56:15 -07:00
go/internal/lsp/testdata/suggestedfix/has_suggested_fix.go.golden
Michael Matloob 75be6cdcda internal/lsp: enable suggested fixes by default
Remove the wantSuggestedFixes flag, and run the flagged code
by default.

Add test cases for suggested fixes.
Generate a suggested fix to the assign analysis that suggests removing redundant assignments.
Fix the propagation of suggested fixes (using rstambler's code).

Change-Id: I342c8e0b75790518f228b00ebd2979d24338be3b
Reviewed-on: https://go-review.googlesource.com/c/tools/+/193265
Run-TryBot: Michael Matloob <matloob@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2019-09-09 19:40:07 +00:00

14 lines
139 B
Plaintext

-- suggestedfix --
package suggestedfix
import (
"log"
)
func goodbye() {
s := "hiiiiiii"
//@suggestedfix("s = s")
log.Printf(s)
}