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 #943

Merged
merged 1 commit into from
Jun 11, 2024
Merged

Use theforeman-rubocop gem #943

merged 1 commit into from
Jun 11, 2024

Conversation

archanaserver
Copy link
Contributor

Choose to inherit from lenient.yml, because wanted to inherit rules from style_lenient.yml as well, i followed this:
https://github.com/theforeman/theforeman-rubocop?tab=readme-ov-file#not-intrusive-style---lenient

Also drop some cops from the .rubocop.yml config, because that was present in inherit-gem and added theforeman-rubocop gem.

This is part of Rubocop standerdization, link for the reference: https://community.theforeman.org/t/standardizing-rubocop-with-theforeman-rubocop/37239

Copy link
Member

@chris1984 chris1984 left a comment

Choose a reason for hiding this comment

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

Looks like some files need to be updated with the new gem, can you submit them in a separate commit in this pr?

Copy link
Member

@chris1984 chris1984 left a comment

Choose a reason for hiding this comment

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

Can this one be rebased with your fixes from your other pr then this should be green

Copy link
Member

@chris1984 chris1984 left a comment

Choose a reason for hiding this comment

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

@archanaserver acked your other pr, can you rebase this one to resolve the conflicts

Choose to inherit from lenient.yml, because wanted to inherit rules
from style_lenient.yml as well, i followed this:
https://github.com/theforeman/theforeman-rubocop?tab=readme-ov-file#not-intrusive-style---lenient

Also drop some cops from the .rubocop.yml config, because that was
present in inherit-gem and added theforeman-rubocop gem.

This is part of Rubocop standerdization, link for the reference:
https://community.theforeman.org/t/standardizing-rubocop-with-theforeman-rubocop/37239
@archanaserver
Copy link
Contributor Author

Thanks @chris1984 and this one is green now!

@chris1984 chris1984 merged commit f65f4b2 into Katello:main Jun 11, 2024
9 of 10 checks passed
@@ -65,6 +65,8 @@ Gem::Specification.new do |gem|
gem.version = HammerCLIKatello.version
gem.required_ruby_version = '>= 2.7', '< 3.2'

gem.add_dependency 'theforeman-rubocop', '~> 0.1.0'
Copy link
Member

Choose a reason for hiding this comment

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

This should have been a development dependency, not a runtime dependency

Copy link
Member

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants