Set gometalinter command to run

This commit is contained in:
2016-10-08 18:35:24 +02:00
parent 85896837bc
commit 68ba0aa6ee

17
.vimrc
View File

@@ -203,6 +203,23 @@ command Q q
command Qa qa
command QA qa
" keep in sync with https://github.com/dasfoo/travis/blob/master/go.sh
let g:go_metalinter_command = "gometalinter " .
\ "--disable=unconvert " .
\ "--disable=dupl " .
\ "--disable=gas " .
\ "--enable=testify " .
\ "--enable=test ".
\ "--enable=goimports " .
\ "--enable=gofmt " .
\ "--enable=lll " .
\ "--enable=misspell " .
\ "--deadline=1m " .
\ "--line-length=100 " .
\ "--exclude='\.pb\.go:' " .
\ "./..."
if filereadable(expand("~/.vimrc_local"))
source ~/.vimrc_local
endif