include test files by default. add error type.
This commit is contained in:
parent
aca4d8ea40
commit
3db525cac1
@ -19,20 +19,29 @@ let s:save_cpo = &cpo
|
|||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
|
||||||
function! SyntaxCheckers_go_gometalinter_GetLocList() dict
|
function! SyntaxCheckers_go_gometalinter_GetLocList() dict
|
||||||
let opts = syntastic#util#var('go_gometalinter_args', '')
|
let opts = syntastic#util#var('go_gometalinter_args', '-t')
|
||||||
let opt_str = (type(opts) != type('') || opts !=# '') ? join(syntastic#util#argsescape(opts)) : opts
|
let opt_str = (type(opts) != type('') || opts !=# '') ? join(syntastic#util#argsescape(opts)) : opts
|
||||||
let makeprg = self.getExecEscaped() . ' ' . opt_str
|
let makeprg = self.getExecEscaped() . ' ' . opt_str
|
||||||
|
|
||||||
let errorformat =
|
let errorformat =
|
||||||
\ '%f:%l:%c:%m,' .
|
\ '%f:%l:%c:%tarning: %m,' .
|
||||||
|
\ '%f:%l:%c:%trror: %m,' .
|
||||||
|
\ '%f:%l::%tarning: %m,' .
|
||||||
|
\ '%f:%l::%trror: %m,' .
|
||||||
\ '%-G%.%#'
|
\ '%-G%.%#'
|
||||||
|
|
||||||
return SyntasticMake({
|
let loclist = SyntasticMake({
|
||||||
\ 'makeprg': makeprg,
|
\ 'makeprg': makeprg,
|
||||||
\ 'errorformat': errorformat,
|
\ 'errorformat': errorformat,
|
||||||
\ 'cwd': expand('%:p:h', 1),
|
\ 'cwd': expand('%:p:h', 1)})
|
||||||
\ 'defaults': {'type': 'w'},
|
|
||||||
\ 'subtype': 'Style' })
|
for e in loclist
|
||||||
|
if e['type'] =~? '\m^[W]'
|
||||||
|
let e['subtype'] = 'Style'
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
|
||||||
|
return loclist
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user