From e4fcb80ee400d663a2228416afd9914f896d3b8b Mon Sep 17 00:00:00 2001 From: "Ireton, Doug" Date: Thu, 17 Oct 2013 06:22:44 -0700 Subject: [PATCH] Add filetype and subchecker args to foodcritic makeprg --- syntax_checkers/chef/foodcritic.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syntax_checkers/chef/foodcritic.vim b/syntax_checkers/chef/foodcritic.vim index 83901270..0808137b 100644 --- a/syntax_checkers/chef/foodcritic.vim +++ b/syntax_checkers/chef/foodcritic.vim @@ -22,7 +22,8 @@ endfunction function! SyntaxCheckers_chef_foodcritic_GetLocList() let makeprg = syntastic#makeprg#build({ \ 'exe': 'foodcritic', - \ 'args': '' }) + \ 'filetype': 'chef', + \ 'subchecker': 'foodcritic' }) " FC023: Prefer conditional attributes: ./recipes/config.rb:49 let errorformat = 'FC%n: %m: %f:%l'