Sha256: b1c36f69d0b7bb108ebbced7e16193d55f47514f33510db2adf410ceddd08f3b

Contents?: true

Size: 597 Bytes

Versions: 19

Compression:

Stored size: 597 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("cd #{Katello::Engine.root} && bundle exec rubocop")
  end

  desc "Runs Rubocop style checker with xml output for Jenkins"
  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($CHILD_STATUS.exitstatus)
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
katello-3.3.2 lib/katello/tasks/rubocop.rake
katello-3.3.1.1 lib/katello/tasks/rubocop.rake
katello-3.3.1 lib/katello/tasks/rubocop.rake
katello-3.3.0.1 lib/katello/tasks/rubocop.rake
katello-3.3.0 lib/katello/tasks/rubocop.rake
katello-3.3.0.rc2 lib/katello/tasks/rubocop.rake
katello-3.3.0.rc1.1 lib/katello/tasks/rubocop.rake
katello-3.3.0.rc1 lib/katello/tasks/rubocop.rake
katello-3.2.1.1 lib/katello/tasks/rubocop.rake
katello-3.2.1 lib/katello/tasks/rubocop.rake
katello-3.2.0 lib/katello/tasks/rubocop.rake
katello-3.2.0.rc3 lib/katello/tasks/rubocop.rake
katello-3.2.0.rc2 lib/katello/tasks/rubocop.rake
katello-3.2.0.rc1.1 lib/katello/tasks/rubocop.rake
katello-3.2.0.rc1 lib/katello/tasks/rubocop.rake
katello-3.1.0.1 lib/katello/tasks/rubocop.rake
katello-3.1.0 lib/katello/tasks/rubocop.rake
katello-3.1.0.rc2.1 lib/katello/tasks/rubocop.rake
katello-3.1.0.rc1 lib/katello/tasks/rubocop.rake