theforeman / theforeman-rubocop

Foreman RuboCop basic rules
2 stars 7 forks source link

#2 Release a new version of theforeman-rubocop #13

Open archanaserver opened 5 months ago

archanaserver commented 5 months ago

For more details: https://community.theforeman.org/t/standardizing-rubocop-with-theforeman-rubocop/37239

archanaserver commented 3 months ago

@ekohl is there anything else that need to be done here?

ekohl commented 2 months ago

We need to update all the RuboCop version to the latest. There are new versions released by now (see open PRs).

And we don't need this dependency anymore and we should drop it https://github.com/theforeman/theforeman-rubocop/blob/71cf8bff903e870f97bc995239b0fff53c3f5096/theforeman-rubocop.gemspec#L26

ekohl commented 2 months ago

Another thing I noticed while running RuboCop on Foreman is that I saw:

The following RuboCop extension libraries are installed but not loaded in config:
  * rubocop-capybara
  * rubocop-graphql

You can opt out of this message by adding the following to your config (see https://docs.rubocop.org/rubocop/extensions.html#extension-suggestions for more options):
  AllCops:
    SuggestExtensions: false

I think we should include those in rules/rails.yml as enabled extensions.

archanaserver commented 2 months ago

@ekohl raised PRs to fix it, #24 #25