
* 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.
12 lines
237 B
Go
12 lines
237 B
Go
package goanalysis
|
|
|
|
import (
|
|
"golang.org/x/tools/go/analysis"
|
|
)
|
|
|
|
type SupportedLinter interface {
|
|
Analyzers() []*analysis.Analyzer
|
|
Cfg() map[string]map[string]interface{}
|
|
AnalyzerToLinterNameMapping() map[*analysis.Analyzer]string
|
|
}
|