lib/katello/tasks/rubocop.rake in katello-3.0.2 vs lib/katello/tasks/rubocop.rake in katello-3.1.0.rc1
- old
+ new
@@ -1,9 +1,8 @@
require File.expand_path("../engine", File.dirname(__FILE__))
namespace :katello do
-
desc "Runs Rubocop style checker on Katello code"
task :rubocop do
system("cd #{Katello::Engine.root} && bundle exec rubocop")
end
@@ -11,9 +10,8 @@
task 'rubocop:jenkins' do
system("cd #{Katello::Engine.root} && bundle exec rubocop \
--require rubocop/formatter/checkstyle_formatter \
--format RuboCop::Formatter::CheckstyleFormatter \
--no-color --out rubocop.xml")
- exit($?.exitstatus)
+ exit($CHILD_STATUS.exitstatus)
end
-
end