Project

General

Profile

Actions

Feature #3809

closed

Add rubocop to foreman

Added by David Davis over 10 years ago. Updated over 5 years ago.


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:

https://github.com/Katello/katello/blob/628a01ad914e7c5d63c8d325e4798a8c19755cff/lib/katello/tasks/rubocop.rake


Related issues 6 (1 open5 closed)

Related to Katello - Bug #7022: Need to update rubocop to 0.24.1ClosedDavid Davis08/11/2014Actions
Related to Smart Proxy - Feature #7181: Add rubocop to smart-proxy codeClosed08/20/2014Actions
Related to Website - Feature #7179: Document how to run rubocopClosedDavid DavisActions
Related to Katello - Bug #7196: Tie into the Foreman rubocop rake taskRejectedActions
Related to Foreman - Bug #9231: Exception message missing when ENC fails to renderClosedDavid Davis02/05/2015Actions
Related to Foreman - Refactor #22058: Rubocop Tracker IssueNewActions
Actions

Also available in: Atom PDF