Skip to content

Commit

Permalink
#15473 - add lint task to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasmodeneis committed Apr 5, 2018
1 parent a095b84 commit ebf6df0
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 @@ -37,6 +37,15 @@ ios:
test: all
build/env.sh go run build/ci.go test

lint: install-linters ## Run linters. Use make install-linters first.
vendorcheck ./...
gometalinter --disable-all -E vet -E goimports -E varcheck --tests --vendor ./...

install-linters: ## Install linters
go get -u github.com/FiloSottile/vendorcheck
go get -u github.com/alecthomas/gometalinter
gometalinter --vendored-linters --install

clean:
rm -fr build/_workspace/pkg/ $(GOBIN)/*

Expand Down

0 comments on commit ebf6df0

Please sign in to comment.