Skip to content

Commit

Permalink
(PUP-2563) Remove rubocop task's check for ruby 1.8.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Kylo Ginsberg committed Dec 3, 2014
1 parent 7b4436c commit 4cd177e
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,9 @@ end

desc 'run static analysis with rubocop'
task(:rubocop) do
if RUBY_VERSION !~ /1.8/
require 'rubocop'
cli = RuboCop::CLI.new
exit_code = cli.run(%w(--display-cop-names --format simple))
raise "RuboCop detected offenses" if exit_code != 0
else
raise "Rubocop is disabled in ruby 1.8"
end
require 'rubocop'
cli = RuboCop::CLI.new
exit_code = cli.run(%w(--display-cop-names --format simple))
raise "RuboCop detected offenses" if exit_code != 0
end

0 comments on commit 4cd177e

Please sign in to comment.