Foodcritic / foodcritic

Lint tool for Chef cookbooks.
http://foodcritic.io
MIT License
408 stars 153 forks source link

recursively run foodcritic in an entire folder #763

Open lmzhangucsd opened 6 years ago

lmzhangucsd commented 6 years ago

Hi, I want to know how to run foodcritic in an entire folder, currently, my project directory contains multiple layers of sub-directories which contain the .rb files. How do I test them all at the same time

coderanger commented 6 years ago

Foodcritic only understands cookbooks, not unstructured folders of Ruby code. Do you mean you have a folder full of cookbooks or something else?

lmzhangucsd commented 6 years ago

so I have a root folder which contains many cookbooks, how do I test the entire root folder at once?

coderanger commented 6 years ago

Shouldn't be any need for a recursive anything, just foodcritic * from the cookbooks folder.