Installing FoodCritic on Windows

March 6, 2017

FoodCritiic is a linter for Chef Cookbooks. It does an automated code review on your Chef Cookbook and reports violations. See the FoodCritiic home page for a list of violations and how to fix them.

Here are steps I used to install it on Windows.

  1. Install Ruby
  2. Install Ruby DevKit. I put in C:\Ruby-DevKit
    cd C:\Ruby-DevKit
    ruby dk.rb init
    ruby dk.rb install
    gem install foodcritic
  3. Restart cmd tool
  4. Run FoodCritic
    foodcritic my_cookbook_dir