aboutsummaryrefslogtreecommitdiff
path: root/.vim/autoload/neomake/makers/ft/xml.vim
blob: 75b6996502735eada822099a3ce89a0c3f7b455e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
" vim: ts=4 sw=4 et

function! neomake#makers#ft#xml#EnabledMakers() abort
    return ['xmllint']
endfunction

function! neomake#makers#ft#xml#xmllint() abort
    let args = ['--xinclude', '--postvalid', '--noout']

    return {
        \ 'args': args,
        \ 'supports_stdin': 1,
        \ 'errorformat':
            \ '%E%f:%l: error : %m,' .
            \ '%-G%f:%l: validity error : Validation failed: no DTD found %m,' .
            \ '%W%f:%l: warning : %m,' .
            \ '%W%f:%l: validity warning : %m,' .
            \ '%E%f:%l: validity error : %m,' .
            \ '%E%f:%l: parser error : %m,' .
            \ '%E%f:%l: %m,' .
            \ '%-Z%p^,' .
            \ '%-C%.%#,' .
            \ '%-G%.%#',
        \ }
endfunction