RubyMine 2017.3 Help

RuboCop

Important note

There is no RubyMine's implementation of RuboCop. RubyMine only executes the RuboCop installed by the users, reads the output and visualizes it in the editor.

Prerequisites

To make use of the RuboCop, make sure that the following prerequisites are met:

  • You are working with RubyMine version 2017.1 or higher.
  • The gem rubocop is installed.

Using the RuboCop inspection

The RuboCop inspection is enabled by default. If your project SDK has the rubocop gem installed, then you’ll immediately see the results of this inspection in the Editor, in the same way as the other RubyMine inspections. Otherwise, RubyMine suggests to install the missing gem to your projects’ SDK and enable this inspection:

/help/img/idea/2017.3/rubocop_inspection.png

The banner shows only once per project. If you don’t want to use RuboCop in your project, just skip this notification.

To switch off RuboCop inspections, open Settings/Preferences dialog, open the page Inspections and then uncheck the inspection RuboCop:

/help/img/idea/2017.3/rubocop_inspection_off.png

See Also

Last modified: 15 September 2017