Update staticcheck and cache go/analysis facts (#699)

* update staticcheck

Don't fork staticcheck: use the upstream version.
Remove unneeded SSA loading.

* Cache go/analysis facts

Don't load unneeded packages for go/analysis.
Repeated run of go/analysis linters now 10x faster
(2s vs 20s on this repo) than before.
This commit is contained in:
Isaev Denis 2019-09-17 08:42:16 +03:00 committed by GitHub
parent 0e0cd753d2
commit 6a979fb40d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
149 changed files with 19031 additions and 9474 deletions

View file

@ -34,6 +34,10 @@ type stageDuration struct {
}
func (s *Stopwatch) sprintStages() string {
if len(s.stages) == 0 {
return "no stages"
}
stageDurations := []stageDuration{}
for n, d := range s.stages {
stageDurations = append(stageDurations, stageDuration{