19 lines
372 B
Go
19 lines
372 B
Go
package main
|
|
|
|
import (
|
|
"golang.org/x/tools/go/analysis"
|
|
"tildegit.org/indigo/explicitreturn/pkg/analyzer"
|
|
)
|
|
|
|
type analyzerPlugin struct{}
|
|
|
|
// This must be implemented
|
|
func (*analyzerPlugin) GetAnalyzers() []*analysis.Analyzer {
|
|
return []*analysis.Analyzer{
|
|
analyzer.Analyzer,
|
|
}
|
|
}
|
|
|
|
// This must be defined and named 'AnalyzerPlugin'
|
|
var AnalyzerPlugin analyzerPlugin
|