We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b65795 commit 1a0207bCopy full SHA for 1a0207b
analyzer/plugin/plugin.go
@@ -9,12 +9,8 @@ import (
9
"golang.org/x/tools/go/analysis"
10
)
11
12
-type analyzerPlugin struct{}
13
-
14
-func (*analyzerPlugin) GetAnalyzers() []*analysis.Analyzer {
15
- return []*analysis.Analyzer{
16
- analyzer.New(),
17
- }
+func New(conf any) ([]*analysis.Analyzer, error) {
+ // The configuration type will be map[string]any or []interface, it depends
+ // on your configuration.
+ return []*analysis.Analyzer{analyzer.New()}, nil
18
}
19
20
-var AnalyzerPlugin analyzerPlugin
0 commit comments