RubyMine 7.0.2 Web Help

Disabling and Enabling Inspections

If you think that some inspections report about the problems that you are not interested in, you can disable such inspections. Note that when you disable an inspection, it is disabled in the current inspection profile; in all other profiles, it remains enabled.

There are several ways to disable/enable inspections:

  • Using the Inspections settings settings page - this is the main interface for managing inspections; here you can see at once, which inspections are enabled or disabled in all inspection profiles.
  • Using the intention actions - this is the way to disable a highlighted code issues right in the editor.
  • In the Inspection tool window - this is a quick way to disable uninteresting issues when analyzing inspection results. Note that here you can only disable inspections.

To disable or enable an inspection

  1. In the inspection settings, select the desired profile. The inspections associated with the profile are displayed in the tree view.
  2. Find the desired inspection, by expanding the grouping nodes or using the search field.
    disableInspection
  3. Use the check box next to the inspection to disable or enable it.
  4. Apply the changes and close the dialog box.

To disable an inspection for highlighted issue in the editor

  1. Set the caret at a highlighted issue.
  2. Click the bulb icon or press Alt+Enter to reveal the inspection alert and suggestion list.
  3. Select the inspection to be disabled, then click right arrow button or just press the right arrow key.
  4. On the submenu, click Disable <inspection name> .
    ruby_disableInspectionInEditor.png

To disable inspections from the inspection results report

  1. In the Inspection tool window, right-click the inspection you want to disable.
  2. On the context menu, choose Disable inspection.
    ruby_disableInspection
  3. Press the filter button commonfilter.png to hide the disabled inspection alerts.

See Also

Web Resources:

Last modified: 24 January 2015
comments powered by Disqus