go/go
Johan Brandhorst 31e00f45c2 go/analysis: add sortslice pass
The sort.Slice method accepts an empty interface as its first
argument, but a slice type is the only valid use of the method.
This analyzer adds a diagnostic if the user uses the sort.Slice
method with anything other than a slice type as the first argument.

Change-Id: I3b54873faba2e9c2e832223a3cdab15a0b534650
Reviewed-on: https://go-review.googlesource.com/c/tools/+/191598
Run-TryBot: Johan Brandhorst <johan.brandhorst@gmail.com>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
2019-09-14 23:59:51 +00:00
..
analysis go/analysis: add sortslice pass 2019-09-14 23:59:51 +00:00
ast go/ast/inspector: fix a small typo 2019-01-10 14:16:07 +00:00
buildutil all: fix more typos 2019-09-11 15:13:14 +00:00
callgraph all: add a space before +build in build tag comments 2019-09-08 12:23:18 +00:00
cfg go/cfg: stop once we've found the fallthrough target 2019-07-19 00:04:45 +00:00
expect go/expect: rewrite the expectation parser 2018-11-30 19:57:46 +00:00
gccgoexportdata go/gccgoexportdata: correctly handle archive files containing string tables 2016-11-09 21:28:38 +00:00
gcexportdata go/gcexportdata: fix example test for changes in net/rpc 2019-04-16 18:06:57 +00:00
internal all: fix more typos 2019-09-11 15:13:14 +00:00
loader all: skip more memory-intensive tests on linux-arm 2019-08-30 17:05:41 +00:00
packages go/packages: suppress go list -e error when directory outside modules 2019-09-12 21:56:17 +00:00
pointer all: fix more typos 2019-09-11 15:13:14 +00:00
ssa all: fix more typos 2019-09-11 15:13:14 +00:00
types all: fix more typos 2019-09-11 15:13:14 +00:00
vcs go/vcs: ignore "mod" VCS type 2019-05-06 14:53:03 +00:00