Skip to content

Commit

Permalink
Lint and make test
Browse files Browse the repository at this point in the history
  • Loading branch information
stbenjam committed Apr 6, 2022
1 parent b27401d commit 23eeccd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
all: gosprintfhostport.so
.PHONY: lint

.PHONY: lint test
clean:
rm gosprintfhostport.so

test:
go test ./...

lint:
golangci-lint run ./...

gosprintfhostport.so:
go build -buildmode=plugin plugin/gosprintfhostport.go
go build -buildmode=plugin plugin/gosprintfhostport.go
2 changes: 1 addition & 1 deletion plugin/gosprintfhostport.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ func (*analyzerPlugin) GetAnalyzers() []*analysis.Analyzer {
}

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

0 comments on commit 23eeccd

Please sign in to comment.