Skip to content

Commit

Permalink
added golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vtopc committed Oct 25, 2024
1 parent 1733cdb commit e1bac6e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,12 @@ godoc:
.PHONY: nilaway
nilaway: $(NILAWAY)
$(NILAWAY) -include-pkgs="$(PACKAGE)" -test=false -exclude-errors-in-files=mock_ ./...

# linter:
GOLINT = $(GOPATH)/bin/golangci-lint
$(GOLINT):
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin v1.61.0

.PHONY: lint
lint: $(GOLINT)
$(GOLINT) run -new-from-rev=master

0 comments on commit e1bac6e

Please sign in to comment.