Created
November 15, 2012 11:44
-
-
Save abhishekkr/4078239 to your computer and use it in GitHub Desktop.
foodcritic RakeTask that worked for me
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'bundler/setup' | |
| require 'foodcritic' | |
| task :default => [:foodcritic] | |
| task :foodcritic do | |
| cookbooks = File.absolute_path(File.join File.dirname(__FILE__), 'cookbooks') | |
| puts 'FoodCritic running... | |
| would criticize if finds anything, not cycnical to blabber otherwise.' | |
| result = FoodCritic::Linter.new.check cookbooks, {} | |
| puts result | |
| fail if result.failed? | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment