Prerequisites

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 IntelliJ IDEA inspections. Otherwise, IntelliJ IDEA suggests to install the missing gem to your projects’ SDK and enable this inspection:

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

Mapping of RuboCop severities to the IntelliJ IDEA severities is hardcoded the following way: