Skip to content

Commit

Permalink
Add plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
stbenjam committed Apr 6, 2022
1 parent e9b1b49 commit f688bc9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions plugin/gosprintfhostport.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package main

import (
"golang.org/x/tools/go/analysis"

"github.com/stbenjam/go-sprintf-host-port/pkg/analyzer"
)

type analyzerPlugin struct{}

func (*analyzerPlugin) GetAnalyzers() []*analysis.Analyzer {
return []*analysis.Analyzer{
analyzer.Analyzer,
}
}

// This must be defined and named 'AnalyzerPlugin'
var AnalyzerPlugin analyzerPlugin

0 comments on commit f688bc9

Please sign in to comment.