Browse Source

add linter for proto files (Fixes #128)

pull/1780/head
Anton Kaliaev 7 years ago
parent
commit
8b71e47002
No known key found for this signature in database GPG Key ID: 7B6881D965918214
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      Makefile

+ 4
- 1
Makefile View File

@ -1,7 +1,8 @@
GOTOOLS = \
github.com/mitchellh/gox \
github.com/Masterminds/glide \
github.com/alecthomas/gometalinter
github.com/alecthomas/gometalinter \
github.com/ckaznocha/protoc-gen-lint
all: protoc install test
@ -57,10 +58,12 @@ get_vendor_deps:
metalinter: tools
@gometalinter --install
protoc --lint_out=. types/*.proto
gometalinter --vendor --deadline=600s --enable-all --disable=lll ./...
metalinter_test: tools
@gometalinter --install
# protoc --lint_out=. types/*.proto
gometalinter --vendor --deadline=600s --disable-all \
--enable=maligned \
--enable=deadcode \


Loading…
Cancel
Save