feat: add ale_go_govet_options variable

This commit is contained in:
tyru
2018-08-16 11:02:51 +09:00
parent 9cdd8b67b2
commit 88ffdb4736
4 changed files with 20 additions and 0 deletions
+4
View File
@@ -4,8 +4,12 @@
" Author: John Eikenberry <jae@zhar.net>
" Description: updated to work with go1.10
call ale#Set('go_govet_options', '')
function! ale_linters#go#govet#GetCommand(buffer) abort
let l:options = ale#Var(a:buffer, 'go_govet_options')
return ale#path#BufferCdString(a:buffer) . ' go vet .'
\ . (!empty(l:options) ? ' ' . l:options : '')
endfunction
call ale#linter#Define('go', {