You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
384 B
14 lines
384 B
6 years ago
|
.PHONY: golangci-lint
|
||
|
golangci-lint:
|
||
|
@hash golangci-lint > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
||
|
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(GOPATH)/bin v1.16.0; \
|
||
|
fi
|
||
|
golangci-lint run
|
||
|
|
||
|
.PHONY: lint
|
||
|
lint:
|
||
|
@hash golint > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
||
|
go get -u golang.org/x/lint/golint; \
|
||
|
fi
|
||
|
golint ./...
|