aboutsummaryrefslogtreecommitdiff
path: root/.vim/autoload/neomake/makers/ft/r.vim
blob: 59f488aa8fb4ae38c9ac41f3cf4af9177f85ff00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
" vim: ts=4 sw=4 et

function! neomake#makers#ft#r#EnabledMakers() abort
    return ['lintr']
endfunction

function! neomake#makers#ft#r#lintr() abort
    return {
        \ 'exe': 'R',
        \ 'args': ['--slave', '--no-restore', '--no-save', '-e lintr::lint("%t")'],
        \ 'append_file': 0,
        \ 'errorformat':
        \   '%W%f:%l:%c: style: %m,' .
        \   '%W%f:%l:%c: warning: %m,' .
        \   '%E%f:%l:%c: error: %m,'
        \ }
endfunction