Sha256: 4e3a2ea8f617180f74c9e82864ca90d01d011a99d90685b514b3c8b22dcbd5bc

Contents?: true

Size: 623 Bytes

Versions: 177

Compression:

Stored size: 623 Bytes

Contents

require File.expand_path("../engine", File.dirname(__FILE__))

namespace :katello do
  desc "Runs Rubocop style checker on Katello code"
  task :rubocop do
    system("bundle exec rubocop -D #{Katello::Engine.root}")
    exit($CHILD_STATUS.exitstatus)
  end

  desc "Runs Rubocop style checker with xml output for Jenkins"
  task 'rubocop:jenkins' do
    system("bundle exec rubocop #{Katello::Engine.root} \
            --require rubocop/formatter/checkstyle_formatter \
            --format RuboCop::Formatter::CheckstyleFormatter \
            --no-color --out rubocop.xml")
    exit($CHILD_STATUS.exitstatus)
  end
end

Version data entries

177 entries across 177 versions & 1 rubygems

Version Path
katello-4.11.1 lib/katello/tasks/rubocop.rake
katello-4.11.0 lib/katello/tasks/rubocop.rake
katello-4.11.0.rc2 lib/katello/tasks/rubocop.rake
katello-4.11.0.rc1 lib/katello/tasks/rubocop.rake
katello-4.10.0 lib/katello/tasks/rubocop.rake
katello-4.9.2 lib/katello/tasks/rubocop.rake
katello-4.10.0.rc2 lib/katello/tasks/rubocop.rake
katello-4.10.0.rc1 lib/katello/tasks/rubocop.rake
katello-4.8.4 lib/katello/tasks/rubocop.rake
katello-4.9.1 lib/katello/tasks/rubocop.rake
katello-4.8.3 lib/katello/tasks/rubocop.rake
katello-4.9.0 lib/katello/tasks/rubocop.rake
katello-4.7.6 lib/katello/tasks/rubocop.rake
katello-4.8.2 lib/katello/tasks/rubocop.rake
katello-4.9.0.rc2 lib/katello/tasks/rubocop.rake
katello-4.9.0.rc1 lib/katello/tasks/rubocop.rake
katello-4.8.1 lib/katello/tasks/rubocop.rake
katello-4.7.5 lib/katello/tasks/rubocop.rake
katello-4.8.0 lib/katello/tasks/rubocop.rake
katello-4.8.0.rc2 lib/katello/tasks/rubocop.rake