go/go/analysis
Ben Kraft 567bb5a4fa go/analysis/analysistest: fix issue in RunWithSuggestedFixes on a package with tests
The issue is described further in golang/go#40574.  The fix is simply to do the
suggested-fixes checking on each result separately.  We still get
duplicate messages, which is arguably the correct behavior but certainly
not so bad, and we no longer get a bunch of spurious errors.

Fixes golang/go#40574.

Change-Id: I3540070e7ce2f20e65269f166b941e9c90436d01
GitHub-Last-Rev: 706ca751535dab820388fa25e7452f103c814c64
GitHub-Pull-Request: golang/tools#245
Reviewed-on: https://go-review.googlesource.com/c/tools/+/246737
Trust: Rebecca Stambler <rstambler@golang.org>
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
2020-10-06 17:48:53 +00:00
..
analysistest go/analysis/analysistest: fix issue in RunWithSuggestedFixes on a package with tests 2020-10-06 17:48:53 +00:00
doc all: fix more typos 2019-09-11 15:13:14 +00:00
internal go/analysis/internal/checker: don't filter facts of parameters 2020-06-09 16:44:05 +00:00
multichecker Revert "go/packages: temporarily disable some tests running on go tip with -race" 2019-10-28 14:32:39 +00:00
passes unusedresult.go: Include context.With* functions 2020-09-01 15:31:17 +00:00
singlechecker go/analysis/singlechecker: append a newline after "Flags:" 2020-03-12 17:39:32 +00:00
unitchecker go/analysis/unitchecker: add erroras analysis to align with go vet 2019-11-11 15:48:04 +00:00
analysis.go internal/lsp: add support for type error analyzers 2020-03-27 17:27:16 +00:00
diagnostic.go go/analysis, internal/lsp: add support for related information 2019-10-21 19:00:55 +00:00
doc.go go/analysis: suggest to users how to associate diagnostics with severities 2020-06-05 17:09:33 +00:00
validate.go report cycle when visiting a grey analyzer 2020-09-11 19:35:55 +00:00
validate_test.go report cycle when visiting a grey analyzer 2020-09-11 19:35:55 +00:00