From 0264822f898644d2d18667fd5bfe7716f3f7f45f Mon Sep 17 00:00:00 2001 From: Richard Clamp Date: Tue, 6 Jan 2015 12:33:01 +0000 Subject: [PATCH] MCO-519 rake rubocop action should have a meaningful exit status 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. --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 72ce9dd5..f22649d3 100644 --- a/Rakefile +++ b/Rakefile @@ -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