Need advice on writing a checker for Chef

37 views
Skip to first unread message

Doug Ireton

unread,
May 17, 2013, 1:05:59 AM5/17/13
to vim-sy...@googlegroups.com
I'm trying to write a syntax checker for Chef cookbook files, which are also Ruby files.

Can I chain two different filetype checkers together somehow, e.g. Chef and Ruby? Can Syntastic run the Ruby MRI checker for Ruby syntax and another checker (foodcritic) for Chef cookbook syntax?

Thanks,

Doug Ireton

lcd...@gmail.com

unread,
Feb 5, 2015, 12:05:22 PM2/5/15
to vim-sy...@googlegroups.com
Yes: set the filetype of your file to "chef.ruby", and syntastic will run checkers corresponding to "chef" and "ruby".
See ":help syntastic-composite".

/lcd
Reply all
Reply to author
Forward
0 new messages