mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
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:
parent
0e0cd753d2
commit
6a979fb40d
149 changed files with 19031 additions and 9474 deletions
|
@ -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{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue