aboutsummaryrefslogtreecommitdiff
path: root/.vim/autoload/neomake/makers/ft/json.vim
blob: 89a38e047fcc184ce57a579ceb3c892951785226 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
function! neomake#makers#ft#json#EnabledMakers() abort
    return ['jsonlint']
endfunction

function! neomake#makers#ft#json#jsonlintpy() abort
    return {
        \ 'exe': 'jsonlint-py',
        \ 'args': ['--strict'],
        \ 'errorformat':
            \ '%f:%l:%c: %trror: %m,' .
            \ '%f:%l:%c: %tarning: %m,',
        \ }
endfunction

function! neomake#makers#ft#json#jsonlint() abort
    return {
        \ 'args': ['--compact'],
        \ 'errorformat':
            \ '%ELine %l:%c,'.
            \ '%Z\\s%#Reason: %m,'.
            \ '%C%.%#,'.
            \ '%f: line %l\, col %c\, %m,'.
            \ '%-G%.%#'
        \ }
endfunction

function! neomake#makers#ft#json#eslint() abort
    let maker = neomake#makers#ft#javascript#eslint()
    let maker.args += ['--plugin', 'json']
    return maker
endfunction

function! neomake#makers#ft#json#eslint_d() abort
    let maker = neomake#makers#ft#javascript#eslint_d()
    let maker.args += ['--plugin', 'json']
    return maker
endfunction
" vim: ts=4 sw=4 et