Skip to content

Commit

Permalink
lont
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Tanna committed Oct 25, 2022
1 parent cdca028 commit 0732da5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ help:
@echo " gin_example generate gin example server code"
@echo " tidy tidy go mod"

.PHONY: tools
tools:
$(GOBIN)/golangci-lint:
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOBIN) v1.47.2

.PHONY: tools
tools: $(GOBIN)/golangci-lint

lint: tools
$(GOBIN)/golangci-lint run ./...

Expand Down

0 comments on commit 0732da5

Please sign in to comment.