diff options
author | tyru <tyru.exe@gmail.com> | 2018-08-16 11:02:51 +0900 |
---|---|---|
committer | tyru <tyru.exe@gmail.com> | 2018-08-16 11:36:46 +0900 |
commit | 88ffdb47368c7bbfd72e643861f5f5a4663c1fb9 (patch) | |
tree | 6edca488a5c4952ce36f78ad3b01f7963c8c1e67 /ale_linters/go/govet.vim | |
parent | 9cdd8b67b2f52a2dd348ffb13a7fc1b2dcf84416 (diff) | |
download | ale-88ffdb47368c7bbfd72e643861f5f5a4663c1fb9.zip |
feat: add ale_go_govet_options variable
Diffstat (limited to 'ale_linters/go/govet.vim')
-rw-r--r-- | ale_linters/go/govet.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ale_linters/go/govet.vim b/ale_linters/go/govet.vim index e94e6ecd..59fea499 100644 --- a/ale_linters/go/govet.vim +++ b/ale_linters/go/govet.vim @@ -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', { |