Skip to content

Commit

Permalink
makefile: add golint get to makefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuyesuifeng committed Sep 19, 2015
1 parent 00bf40f commit df5e631
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ LDFLAGS += -X "github.com/pingcap/tidb/util/printer.TiDBGitHash=$(shell git rev-

TARGET = ""

.PHONY: godep deps all build install parser clean todo test tidbtest mysqltest gotest interpreter
.PHONY: godep deps all build install parser clean todo test tidbtest mysqltest gotest interpreter server

all: godep parser build test check

Expand Down Expand Up @@ -45,6 +45,8 @@ parser:
golex -o parser/scanner.go parser/scanner.l

check:
go get github.com/golang/lint/golint

@echo "vet"
@ go tool vet . 2>&1 | grep -vE 'Godeps|parser/scanner.*unreachable code' | awk '{print} END{if(NR>0) {exit 1}}'
@echo "vet --shadow"
Expand Down

0 comments on commit df5e631

Please sign in to comment.