Skip to content
Snippets Groups Projects
Commit 98eb077a authored by Patrick Rice's avatar Patrick Rice :evergreen_tree:
Browse files

Merge branch 'update-golangci-analyzer-syntax' into 'main'

Update syntax for tfproviderlint plugin analyzer

See merge request !2394
parents 564b3719 2ed923a0
No related branches found
No related tags found
Loading
Pipeline #1735236693 passed
......@@ -18,7 +18,7 @@ var excludes = []string{
type analyzerPlugin struct{}
func (*analyzerPlugin) GetAnalyzers() []*analysis.Analyzer {
func New(conf any) ([]*analysis.Analyzer, error) {
excludesSet := make(map[string]struct{}, len(excludes))
for _, exclude := range excludes {
......@@ -33,7 +33,7 @@ func (*analyzerPlugin) GetAnalyzers() []*analysis.Analyzer {
}
}
return analyzers
return analyzers, nil
}
var AnalyzerPlugin analyzerPlugin
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment