go/gopls/internal/hooks
Dominik Honnef c3e30ffe92 gopls/internal/hooks: add Staticcheck's quickfix category of checks
Staticcheck's new quickfix category contains optional code
refactorings, such as turning a chain of if/else-if into a switch
statement, or simplifying boolean expressions.

These checks produce diagnostics with the "hint" or "information"
severities. Most use "hint", which produces a subtle hint in VSCode's
UI that a refactoring is available. "information" produces a blue
underline and is only used for those checks that have a very high
likelyhood of improving code readability.

Change-Id: I8f5b4eca67eb6b4e45c17510459d83eb673384e3
Reviewed-on: https://go-review.googlesource.com/c/tools/+/322492
Trust: Dominik Honnef <dominik@honnef.co>
Run-TryBot: Dominik Honnef <dominik@honnef.co>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2021-05-25 19:05:14 +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, gopls: recover from go-diff panics 2020-12-17 16:56:54 +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/internal/hooks: compile URL regexp once 2021-03-02 22:01:27 +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