go/gopls/internal/hooks
Robert Findley 5210e0ca15 gopls: wire in LangVersion and ModulePath for gofumpt formatting
If available, pass the LangVersion and ModulePath provided by
go/packages to gofumpt. This allows gofumpt to apply additional
formatting rules that require this information.

Also add a regression test for gofumpt formatting.

Fixes golang/go#51327

Change-Id: I47c8c96d595d62e1c444285ce69ce6a4e61fa74c
Reviewed-on: https://go-review.googlesource.com/c/tools/+/387634
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
Trust: Daniel Martí <mvdan@mvdan.cc>
gopls-CI: kokoro <noreply+kokoro@google.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-02-24 18:08:50 +00:00
..
analysis.go gopls/internal/hooks: add Staticcheck's quickfix category of checks 2021-05-25 19:05:14 +00:00
analysis_115.go all: go fmt ./... 2021-02-20 03:28:52 +00:00
diff.go internal/lsp/source: compute imports text edits from scratch 2021-07-22 17:13:07 +00:00
diff_test.go gopls: use go-diff for edit generation 2019-10-10 20:18:25 +00:00
gen-licenses.sh gopls/internal/hooks: improve license file test 2021-01-26 00:28:59 +00:00
hooks.go gopls: wire in LangVersion and ModulePath for gofumpt formatting 2022-02-24 18:08:50 +00:00
licenses.go gopls/internal/hooks: improve license file test 2021-01-26 00:28:59 +00:00
licenses_test.go all: upgrade all dependencies, if possible 2021-02-03 19:28:29 +00:00