add gometalinter/errcheck into pre-commit

cblas_new
Helin Wang 8 years ago committed by Helin Wang
parent 2b1cac4113
commit 065e5666ed

@ -21,10 +21,12 @@
sha: 28c0ea8a67a3e2dbbf4822ef44e85b63a0080a29
hooks:
- id: clang-formater
- repo: https://github.com/dnephin/pre-commit-golang
sha: e4693a4c282b4fc878eda172a929f7a6508e7d16
- repo: https://github.com/PaddlePaddle/pre-commit-golang
sha: 6bce8cc8a6ce601bcf6feccf6bfbd43fe04ccbeb
hooks:
- id: go-fmt
files: (.*\.go)
types: [go]
- id: go-lint
files: (.*\.go)
types: [go]
- id: gometalinter
types: [go]

@ -41,6 +41,8 @@ before_install:
- pip install rarfile
- curl https://glide.sh/get | bash
- eval "$(GIMME_GO_VERSION=1.8.3 gimme)"
- go get -u github.com/alecthomas/gometalinter
- gometalinter --install
- |
function timeout() { perl -e 'alarm shift; exec @ARGV' "$@"; }
script:

Loading…
Cancel
Save