diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index c93e2b3fda1..d87dfc1bfdd 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -16,6 +16,8 @@ jobs: rubocop: name: Rubocop uses: theforeman/actions/.github/workflows/rubocop.yml@v0 + with: + command: bundle exec rubocop --parallel --format github test: name: Ruby diff --git a/.rubocop.yml b/.rubocop.yml index 1c928f5054f..11d89fcf764 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,15 +1,11 @@ -require: - - rubocop-performance - - rubocop-rails - - rubocop-minitest - # TODO: Remove the following once the rules in the file is addressed inherit_from: - .rubocop_todo.yml # end TODO -Rails: - Enabled: true +inherit_gem: + theforeman-rubocop: + - lenient.yml Rails/ContentTag: Enabled: false @@ -88,9 +84,6 @@ Style/RedundantSelf: Style/RedundantReturn: Enabled: false -Style/Documentation: - Enabled: false # don't require documentation - Style/Encoding: Enabled: false # don't require utf-8 encoding on every file diff --git a/gemfile.d/test.rb b/gemfile.d/test.rb index a4e052f4d5e..163a21b7438 100644 --- a/gemfile.d/test.rb +++ b/gemfile.d/test.rb @@ -1,4 +1,4 @@ group :test do gem "vcr", "~> 6.1" - gem 'theforeman-rubocop', '~> 0.0.6', require: false + gem 'theforeman-rubocop', '~> 0.1.0', require: false end