Skip to content

Commit 065e566

Browse files
helinwangHelin Wang
authored andcommitted
add gometalinter/errcheck into pre-commit
1 parent 2b1cac4 commit 065e566

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@
2121
sha: 28c0ea8a67a3e2dbbf4822ef44e85b63a0080a29
2222
hooks:
2323
- id: clang-formater
24-
- repo: https://github.com/dnephin/pre-commit-golang
25-
sha: e4693a4c282b4fc878eda172a929f7a6508e7d16
24+
- repo: https://github.com/PaddlePaddle/pre-commit-golang
25+
sha: 6bce8cc8a6ce601bcf6feccf6bfbd43fe04ccbeb
2626
hooks:
2727
- id: go-fmt
28-
files: (.*\.go)
28+
types: [go]
2929
- id: go-lint
30-
files: (.*\.go)
30+
types: [go]
31+
- id: gometalinter
32+
types: [go]

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ before_install:
4141
- pip install rarfile
4242
- curl https://glide.sh/get | bash
4343
- eval "$(GIMME_GO_VERSION=1.8.3 gimme)"
44+
- go get -u github.com/alecthomas/gometalinter
45+
- gometalinter --install
4446
- |
4547
function timeout() { perl -e 'alarm shift; exec @ARGV' "$@"; }
4648
script:

0 commit comments

Comments
 (0)