Actions
Feature #3809
closedAdd rubocop to foreman
Difficulty:
Triaged:
Pull request:
https://github.com/theforeman/foreman/pull/1666, https://github.com/theforeman/foreman/pull/3521, https://github.com/theforeman/foreman/pull/3625, https://github.com/theforeman/foreman/pull/3634, https://github.com/theforeman/foreman/pull/3643, https://github.com/theforeman/foreman/pull/3834, https://github.com/theforeman/foreman/pull/6029
Description
Add rubocop to foreman as a lint checker for the Ruby code. A couple notes:
- To generate the config, use --auto-gen-config which will disable all failing rules and create a TODO list of things to address
- Use https://github.com/eitoball/rubocop-checkstyle_formatter to output XML for Jenkins
Check out our rubocop rake task in Katello for running rubocop via Jenkins:
Actions