go/go/analysis
Robert Findley d5e9e3592c go/analysis/passes/loopclosure: enable analysis of parallel subtests
Remove the internal guard preventing the loopclosure analyzer from
checking parallel subtests.

Also, improve the accuracy of the parallel subtest check:
 - only consider statements after the final labeled statement in the
   subtest body
 - verify that the *testing.T value for which T.Parallel() is invoked
   matches the argument to the subtest literal

Fixes golang/go#55972

Change-Id: Ia2d9e08dfa88b5e31a9151872025272560d4b5e8
Reviewed-on: https://go-review.googlesource.com/c/tools/+/447256
gopls-CI: kokoro <noreply+kokoro@google.com>
Reviewed-by: Tim King <taking@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
2022-11-03 17:48:16 +00:00
..
analysistest internal/diff: ToUnified may fail 2022-10-07 15:16:55 +00:00
doc tools: fix some typos 2022-03-24 22:24:35 +00:00
internal internal/facts: share go/analysis/internal/facts with gopls 2022-10-25 15:31:58 +00:00
multichecker all: go fmt ./... 2021-02-20 03:28:52 +00:00
passes go/analysis/passes/loopclosure: enable analysis of parallel subtests 2022-11-03 17:48:16 +00:00
singlechecker go/analysis: gofmt 2022-04-12 17:43:14 +00:00
unitchecker internal/facts: share go/analysis/internal/facts with gopls 2022-10-25 15:31:58 +00:00
analysis.go all: add copyright notices to files that are missing them 2021-01-06 17:23:47 +00:00
diagnostic.go gopls/internal/lsp: tolerate missing end position in RelatedInformation 2022-10-19 18:04:39 +00:00
doc.go go/analysis: update explanation of (no) Diagnostics.Severity 2022-09-26 18:45:31 +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