Skip to content
This repository has been archived by the owner on Sep 19, 2020. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'mlafeldt/improve-rake-task'
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Crump committed Apr 19, 2014
2 parents 60a0189 + 605d86f commit 8f02274
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lib/foodcritic/rake_task.rb
Expand Up @@ -23,14 +23,11 @@ def options
end

def define
desc "Lint Chef cookbooks"
desc "Lint Chef cookbooks" unless ::Rake.application.last_comment
task(name) do
result = FoodCritic::Linter.new.check(options)
if result.warnings.any?
puts result
end

fail result.to_s if result.failed?
puts result if result.warnings.any?
abort if result.failed?
end
end

Expand Down

0 comments on commit 8f02274

Please sign in to comment.