diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 1f69a4bf6c0..9edd0cb76f4 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 de1be94cf3d..022116337e9 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