aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/share/nvim/site/autoload/neomake/makers/ft/chef.vim
blob: 805a0702e490d60ac3158d3347c2a23307399982 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
function! neomake#makers#ft#chef#SupersetOf() abort
    return 'ruby'
endfunction

function! neomake#makers#ft#chef#EnabledMakers() abort
    let ruby_makers = neomake#makers#ft#ruby#EnabledMakers()
    return ruby_makers + ['foodcritic', 'cookstyle']
endfunction

function! neomake#makers#ft#chef#foodcritic() abort
    return {
      \ 'errorformat': '%WFC%n: %m: %f:%l',
      \ }
endfunction

function! neomake#makers#ft#chef#cookstyle() abort
    return {
      \ 'args': ['-f', 'emacs'],
      \ 'errorformat': '%f:%l:%c: %t: %m',
      \ 'postprocess': function('neomake#makers#ft#ruby#RubocopEntryProcess'),
      \ }
endfunction
" vim: ts=4 sw=4 et