|
|
@ -128,10 +128,10 @@ errcheck: |
|
|
|
|
|
|
|
.PHONY: lint |
|
|
|
lint: |
|
|
|
@hash golint > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
|
|
|
$(GO) get -u golang.org/x/lint/golint; \
|
|
|
|
@hash revive > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
|
|
|
$(GO) get -u github.com/mgechev/revive; \
|
|
|
|
fi |
|
|
|
for PKG in $(PACKAGES); do golint -set_exit_status $$PKG || exit 1; done; |
|
|
|
revive -config .revive.toml -exclude=./vendor/... ./... || exit 1 |
|
|
|
|
|
|
|
.PHONY: misspell-check |
|
|
|
misspell-check: |
|
|
|