Guard::Foodcritic automatically runs foodcritic.
Please be sure to have Guard installed before continuing.
Install the gem:
$ gem install guard-foodcritic
Add the guard-foodcritic definition to your Guardfile by running this command:
$ guard init foodcritic
:all_on_start => false # Whether to run Foodcritic on all cookbooks at startup
# default: true
:cli => "--epic-fail any" # Command line arguments passed to foodcritic
# default: "--epic-fail any"
:cookbook_paths => "." # The path(s) to your cookbooks
# default: ["cookbooks"]
:notification => false # Whether to display notifications after the lint is done running
# default: true