Skip to content

Commit

Permalink
MCO-519 rake rubocop action should have a meaningful exit status
Browse files Browse the repository at this point in the history
Here we make the `rake rubocop` action exit with a status code that indicates
if rubocop is satsfied with the standards of the code.  Prior to this commit it
was simply printing the failing rules.
  • Loading branch information
richardc committed Jan 7, 2015
1 parent 518474b commit 0264822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ task(:rubocop) do
if RUBY_VERSION !~ /1.8/
require 'rubocop'
cli = RuboCop::CLI.new
cli.run(%w(-D -f s))
exit cli.run(%w(-D -f s))
else
puts "Rubocop is disabled in ruby 1.8"
end
Expand Down

0 comments on commit 0264822

Please sign in to comment.