remove lint from Makefile. It could give false alarms.
This commit is contained in:
9
Makefile
9
Makefile
@ -6,7 +6,6 @@
|
|||||||
updatetestdeps \
|
updatetestdeps \
|
||||||
build \
|
build \
|
||||||
proto \
|
proto \
|
||||||
lint \
|
|
||||||
pretest \
|
pretest \
|
||||||
test \
|
test \
|
||||||
testrace \
|
testrace \
|
||||||
@ -39,13 +38,7 @@ proto:
|
|||||||
protoc -I $$(dirname $$file) --go_out=plugins=grpc:$$(dirname $$file) $$file; \
|
protoc -I $$(dirname $$file) --go_out=plugins=grpc:$$(dirname $$file) $$file; \
|
||||||
done
|
done
|
||||||
|
|
||||||
lint: testdeps
|
pretest:
|
||||||
go get -v github.com/golang/lint/golint
|
|
||||||
for file in $$(git ls-files '*.go' | grep -v '\.pb\.go$$' | grep -v '_string\.go$$'); do \
|
|
||||||
golint $$file; \
|
|
||||||
done
|
|
||||||
|
|
||||||
pretest: lint
|
|
||||||
|
|
||||||
test: pretest
|
test: pretest
|
||||||
go test -v -cpu 1,4 google.golang.org/grpc/...
|
go test -v -cpu 1,4 google.golang.org/grpc/...
|
||||||
|
Reference in New Issue
Block a user