Merge pull request #29 from posener/metalinter

Metalinter
This commit is contained in:
Eyal Posener 2017-05-19 00:38:56 +03:00 committed by GitHub
commit abde60c79d
3 changed files with 25 additions and 1 deletions

View File

@ -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:

21
metalinter.json Normal file
View File

@ -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"
}

View File

@ -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
```