Sha256: 29bb77e67878177e9cf07810e59e9aa70ea433cbb6d6d300befca66e74f95f20

Contents?: true

Size: 588 Bytes

Versions: 19

Compression:

Stored size: 588 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($?.exitstatus)
  end

end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
katello-3.0.2 lib/katello/tasks/rubocop.rake
katello-2.4.5 lib/katello/tasks/rubocop.rake
katello-3.0.1 lib/katello/tasks/rubocop.rake
katello-2.4.4 lib/katello/tasks/rubocop.rake
katello-3.0.0 lib/katello/tasks/rubocop.rake
katello-2.4.3 lib/katello/tasks/rubocop.rake
katello-3.0.0.rc7 lib/katello/tasks/rubocop.rake
katello-3.0.0.rc5 lib/katello/tasks/rubocop.rake
katello-2.4.2 lib/katello/tasks/rubocop.rake
katello-3.0.0.rc4 lib/katello/tasks/rubocop.rake
katello-3.0.0.rc3 lib/katello/tasks/rubocop.rake
katello-3.0.0.rc2 lib/katello/tasks/rubocop.rake
katello-3.0.0.rc1 lib/katello/tasks/rubocop.rake
katello-2.4.1 lib/katello/tasks/rubocop.rake
katello-2.4.0 lib/katello/tasks/rubocop.rake
katello-2.4.0.rc3 lib/katello/tasks/rubocop.rake
katello-2.4.0.rc2 lib/katello/tasks/rubocop.rake
katello-2.4.0.rc1 lib/katello/tasks/rubocop.rake
katello-2.2.2 lib/katello/tasks/rubocop.rake