|
|
|
@ -2,7 +2,9 @@
@@ -2,7 +2,9 @@
|
|
|
|
|
|
|
|
|
|
function! neomake#makers#ft#go#EnabledMakers() abort |
|
|
|
|
let makers = ['go'] |
|
|
|
|
if executable('golangci-lint') |
|
|
|
|
if executable('revive') |
|
|
|
|
call add(makers, 'revive') |
|
|
|
|
elseif executable('golangci-lint') |
|
|
|
|
call add(makers, 'golangci_lint') |
|
|
|
|
elseif executable('gometalinter') |
|
|
|
|
call add(makers, 'gometalinter') |
|
|
|
@ -12,6 +14,16 @@ function! neomake#makers#ft#go#EnabledMakers() abort
@@ -12,6 +14,16 @@ function! neomake#makers#ft#go#EnabledMakers() abort
|
|
|
|
|
return makers |
|
|
|
|
endfunction |
|
|
|
|
|
|
|
|
|
function! neomake#makers#ft#go#revive() abort |
|
|
|
|
return { |
|
|
|
|
\ 'exe': 'revive', |
|
|
|
|
\ 'cwd': '%:h', |
|
|
|
|
\ 'errorformat': |
|
|
|
|
\ '%f:%l:%c: %m,' . |
|
|
|
|
\ '%f:%l: %m' |
|
|
|
|
\ } |
|
|
|
|
endfunction |
|
|
|
|
|
|
|
|
|
function! neomake#makers#ft#go#go() abort |
|
|
|
|
return { |
|
|
|
|
\ 'args': [ |
|
|
|
|