Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use theforeman-rubocop gem #705

Merged
merged 1 commit into from
Jul 27, 2024
Merged

Conversation

archanaserver
Copy link
Contributor

Inherited strictest.yml here, because this closely matches with what rules we already have in our .rubocop.yml config. Also dropped Rails, Style/HashSyntax, Style/Documentation and Style/SymbolArray from here because that was included in the inherited file.

This is part of RuboCop standardization, link for the reference:
https://community.theforeman.org/t/standardizing-rubocop-with-theforeman-rubocop/37239
https://github.com/theforeman/theforeman-rubocop/?tab=readme-ov-file#all-opinionated-cops-with-new-ones---strictest

.rubocop.yml Outdated Show resolved Hide resolved
@archanaserver
Copy link
Contributor Author

The failure is due to the Ruby v2.2 but I'm not sure from where it is coming, can you help me here @ekohl?

.rubocop.yml Outdated Show resolved Hide resolved
.rubocop.yml Outdated
- rubocop-minitest
inherit_gem:
theforeman-rubocop:
- strictest.yml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we really use strictest given the amount of todo it generated?

Copy link
Contributor Author

@archanaserver archanaserver Jul 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@evgeni not sure why i used that earlier, but now with default we have less cops in todo as compared to what we have earlier.

Inherited strictest.yml here, because this closely matches with what
rules we already have in our rubocop.yml config. Also dropped Rails,
Style/HashSyntax, Style/Documentation and Style/SymbolArray from here
because that was included in the inherited file.
@archanaserver
Copy link
Contributor Author

@evgeni i have made some changes, can you take a look?

@evgeni
Copy link
Member

evgeni commented Jul 26, 2024

@archanaserver looks reasonable to me

@nofaralfasi any last words on this? or shall I just hit he button?

@nofaralfasi nofaralfasi merged commit afd7faa into theforeman:master Jul 27, 2024
26 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
4 participants