Skip to content

Commit

Permalink
Merge pull request #9 from ehaselwanter/master
Browse files Browse the repository at this point in the history
update with common run_all_linters task
  • Loading branch information
chris-rock committed Jun 20, 2014
2 parents dffb590 + cd883b8 commit 6cb3b70
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Rakefile
Expand Up @@ -14,6 +14,10 @@ task :default => :unit
desc "Run linters"
task :lint => [ :rubocop, :foodcritic ]

# Lint the cookbook
desc "Run all linters: rubocop and foodcritic"
task :run_all_linters => [ :rubocop, :foodcritic ]

# Run the whole shebang
desc "Run all tests"
task :test => [ :lint, :integration ]
Expand All @@ -31,7 +35,7 @@ task :foodcritic do
if Gem::Version.new('1.9.2') <= Gem::Version.new(RUBY_VERSION.dup)
puts "Running Foodcritic tests..."
FoodCritic::Rake::LintTask.new do |t|
t.options = { :fail_tags => ['correctness'] }
t.options = { :fail_tags => ['any'] }
puts "done."
end
else
Expand Down

0 comments on commit 6cb3b70

Please sign in to comment.