Foodcritic is a code linting tool for writing better and safer Chef cookbooks that runs both as a command line tool and as a Rake task. Out of the box Foodcritic contains over 50 cookbook rules, and plugin system for writing your own rules.
$ gem install foodcritic $ foodcritic my_cookbook_dir
The Foodcritic site at http://foodcritic.io/ contains documentation for each of the rules as well as documentation on the API for writing your own rules.
- Ruby 2.2.2+
$ bundle install $ bundle exec rake
MIT - see the accompanying LICENSE file for details.
Additional rules and bug fixes are welcome! Please fork and submit a pull request on an individual branch per change.