PC-Lint: mark informational messages as "Style".
This commit is contained in:
parent
9321bc79ed
commit
fa0290c556
@ -19,7 +19,7 @@ if has('reltime')
|
|||||||
lockvar! g:syntastic_start
|
lockvar! g:syntastic_start
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:syntastic_version = '3.5.0-24'
|
let g:syntastic_version = '3.5.0-25'
|
||||||
lockvar g:syntastic_version
|
lockvar g:syntastic_version
|
||||||
|
|
||||||
" Sanity checks {{{1
|
" Sanity checks {{{1
|
||||||
|
@ -36,13 +36,22 @@ function! SyntaxCheckers_c_pc_lint_GetLocList() dict
|
|||||||
let errorformat =
|
let errorformat =
|
||||||
\ '%E%f:%l:%v:Error:%n:%m,' .
|
\ '%E%f:%l:%v:Error:%n:%m,' .
|
||||||
\ '%W%f:%l:%v:Warning:%n:%m,' .
|
\ '%W%f:%l:%v:Warning:%n:%m,' .
|
||||||
\ '%W%f:%l:%v:Info:%n:%m,' .
|
\ '%I%f:%l:%v:Info:%n:%m,' .
|
||||||
\ '%-G%.%#'
|
\ '%-G%.%#'
|
||||||
|
|
||||||
return SyntasticMake({
|
let loclist = SyntasticMake({
|
||||||
\ 'makeprg': makeprg,
|
\ 'makeprg': makeprg,
|
||||||
\ 'errorformat': errorformat,
|
\ 'errorformat': errorformat,
|
||||||
\ 'postprocess': ['cygwinRemoveCR'] })
|
\ 'postprocess': ['cygwinRemoveCR'] })
|
||||||
|
|
||||||
|
for e in loclist
|
||||||
|
if e['type'] ==? 'I'
|
||||||
|
let e['type'] = '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