Skip to content

Commit

Permalink
Add lint target
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Nov 17, 2020
1 parent 53d7374 commit 5702c24
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ $(GOBIN)/goxz:
test: build
go test -v ./...

.PHONY: lint
lint: $(GOBIN)/golint
go vet ./...
golint -set_exit_status ./...

$(GOBIN)/golint:
cd && go get golang.org/x/lint/golint
.PHONY: clean
clean:
rm -rf $(BIN) goxz
Expand Down

0 comments on commit 5702c24

Please sign in to comment.