Test of the suggested fix to remove unnecessary assignments. | |
-- a.go -- | |
package suggestedfix | |
import ( | |
"log" | |
) | |
func goodbye() { | |
s := "hiiiiiii" | |
s = s //@suggestedfix("s = s", re"self-assignment", fix) | |
log.Print(s) | |
} | |
-- @fix/a.go -- | |
@@ -9 +9 @@ | |
- s = s //@suggestedfix("s = s", re"self-assignment", fix) | |
+ //@suggestedfix("s = s", re"self-assignment", fix) |