Skip to content

Commit ebf6df0

Browse files
#15473 - add lint task to makefile
1 parent a095b84 commit ebf6df0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@ ios:
3737
test: all
3838
build/env.sh go run build/ci.go test
3939

40+
lint: install-linters ## Run linters. Use make install-linters first.
41+
vendorcheck ./...
42+
gometalinter --disable-all -E vet -E goimports -E varcheck --tests --vendor ./...
43+
44+
install-linters: ## Install linters
45+
go get -u github.com/FiloSottile/vendorcheck
46+
go get -u github.com/alecthomas/gometalinter
47+
gometalinter --vendored-linters --install
48+
4049
clean:
4150
rm -fr build/_workspace/pkg/ $(GOBIN)/*
4251

0 commit comments

Comments
 (0)