Change information
Commit message:
go/analysis/passes/modernize: disable BLoop analyzer
When b.N is used to benchmark very small workloads,
the suggestion to use b.Loop may result in an increased
overhead that skews benchmark results. Since we cannot
accurately identify such workloads, we unfortunately
should just disable the b.Loop modernizer in the "go
fix" suite.
We leave the modernize enabled in gopls because
it is interactive and programmers will scrutinize
the edits.
Fixes golang/go#74967
Change-Id: I011a167feb865fee6a61cf611aeecb70b285f255
Files:
- M go/analysis/passes/modernize/doc.go
- M go/analysis/passes/modernize/modernize.go
- M gopls/doc/analyzers.md
- M gopls/internal/doc/api.json
Change size: S
Delta: 4 files changed, 6 insertions(+), 4 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Code-Review: +2 by Alan Donovan
TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI