go/go/analysis
Tim King 0eebaabce7 go/analysis: allow for identical SuggestedFixes
Stop treating identical SuggestedFixes as overlapping text edits.
Packages can be loaded in multiple ways due to testing, e.g.
"p" and "p [p.test]". Currently SuggestedFixes from both are
considered overlapping and so are not applied.

Updates applyFixes() to report errors in more situations.

Fixes golang/go#54740

Change-Id: I73acb3b73d88535144cfae5161faabb0615a1774
Reviewed-on: https://go-review.googlesource.com/c/tools/+/426734
Reviewed-by: Abirdcfly Abirdcfly <fp544037857@gmail.com>
Run-TryBot: Tim King <taking@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
gopls-CI: kokoro <noreply+kokoro@google.com>
2022-09-09 18:15:02 +00:00
..
analysistest gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
doc tools: fix some typos 2022-03-24 22:24:35 +00:00
internal go/analysis: allow for identical SuggestedFixes 2022-09-09 18:15:02 +00:00
multichecker all: go fmt ./... 2021-02-20 03:28:52 +00:00
passes go/analysis/passes/copylock: modify match pattern to satisfy change sync.Once.done to atomic.Bool 2022-09-08 19:07:57 +00:00
singlechecker go/analysis: gofmt 2022-04-12 17:43:14 +00:00
unitchecker go/analysis: gofmt 2022-04-12 17:43:14 +00:00
analysis.go all: add copyright notices to files that are missing them 2021-01-06 17:23:47 +00:00
diagnostic.go all: add copyright notices to files that are missing them 2021-01-06 17:23:47 +00:00
doc.go go/analysis: document need for deterministic Fact encoding 2022-06-06 15:25:04 +00:00
validate.go go/analysis: validate report if analyzer.Run is empty 2022-03-30 03:52:37 +00:00
validate_test.go go/analysis: validate report if analyzer.Run is empty 2022-03-30 03:52:37 +00:00