From 606af1720e1f8f74a7f9cafd28936a7da0001a5a Mon Sep 17 00:00:00 2001 From: Eyal Posener Date: Fri, 19 May 2017 00:21:17 +0300 Subject: [PATCH 1/2] travis: add gometalinter tests --- .travis.yml | 3 +++ metalinter.json | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 metalinter.json diff --git a/.travis.yml b/.travis.yml index 214fc60..459df21 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,8 +6,11 @@ go: before_install: - go get -u -t ./... + - go get -u gopkg.in/alecthomas/gometalinter.v1 + - gometalinter.v1 --install script: + - gometalinter.v1 --config metalinter.json ./... - ./test.sh after_success: diff --git a/metalinter.json b/metalinter.json new file mode 100644 index 0000000..799c1d0 --- /dev/null +++ b/metalinter.json @@ -0,0 +1,21 @@ +{ + "Vendor": true, + "DisableAll": true, + "Enable": [ + "gofmt", + "goimports", + "interfacer", + "goconst", + "misspell", + "unconvert", + "gosimple", + "golint", + "structcheck", + "deadcode", + "vet" + ], + "Exclude": [ + "initTests is unused" + ], + "Deadline": "2m" +} From 1dc99e31dbc4ff6cdf421db2c2e378c3faf3fce1 Mon Sep 17 00:00:00 2001 From: Eyal Posener Date: Fri, 19 May 2017 00:21:35 +0300 Subject: [PATCH 2/2] readme: go get -u --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 274474d..1629ee3 100644 --- a/readme.md +++ b/readme.md @@ -22,7 +22,7 @@ can also be used to implement any completions, see [Usage](#usage). 1. Type in your shell: ``` -go get github.com/posener/complete/gocomplete +go get -u github.com/posener/complete/gocomplete gocomplete -install ```