-
Notifications
You must be signed in to change notification settings - Fork 83
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
Conversation
There was a problem hiding this 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?
There was a problem hiding this 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
There was a problem hiding this 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
Thanks @chris1984 and this one is green now! |
@@ -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' |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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