go/internal/imports
Peter Weinberger d67c3ada09 internal/imports: repair warnings from default analyzers
Some of the analyzers that are on by default in gopls produce many distracting
warnings. These are 'composites' and 'simplifycompositelit'.

This CL changes code to remove the 160 or so warnings.

An alternative would be to remove these from the default set of gopls analyzers.

Change-Id: Id5724a5aef260939dedd21a37e28f3d05bfa023d
Reviewed-on: https://go-review.googlesource.com/c/tools/+/443635
Reviewed-by: Heschi Kreinick <heschi@google.com>
Run-TryBot: Peter Weinberger <pjw@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-10-19 15:24:07 +00:00
..
testdata/mod imports: rename to internal/imports 2019-05-20 21:49:35 +00:00
fix.go internal/imports: repair warnings from default analyzers 2022-10-19 15:24:07 +00:00
fix_test.go internal/imports: ignore some line directives 2022-04-06 14:24:15 +00:00
imports.go internal: remove unneeded FileSets 2022-06-06 20:47:10 +00:00
imports_test.go all: add copyright notices to files that are missing them 2021-01-06 17:23:47 +00:00
mkindex.go all: go fmt ./... 2021-02-20 03:28:52 +00:00
mkstdlib.go internal/imports: repair warnings from default analyzers 2022-10-19 15:24:07 +00:00
mod.go internal/imports: repair warnings from default analyzers 2022-10-19 15:24:07 +00:00
mod_cache.go all: add copyright notices to files that are missing them 2021-01-06 17:23:47 +00:00
mod_cache_test.go all: add copyright notices to files that are missing them 2021-01-06 17:23:47 +00:00
mod_test.go internal/imports: use a module resolver if GOWORK is set 2022-06-24 21:03:09 +00:00
sortimports.go internal: remove unneeded FileSets 2022-06-06 20:47:10 +00:00
zstdlib.go internal/imports: repair warnings from default analyzers 2022-10-19 15:24:07 +00:00