PhpStorm 2017.1 Help

Disabling and Enabling Inspections

On this page:

Introduction

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:

Disabling or enabling inspections

To disable or enable an inspection in the Settings/Preferences dialog

  1. Find the desired inspection, by expanding the grouping nodes or using the search field.
    /help/img/idea/2017.1/disableInspection.png
  2. Use the check box next to the inspection to disable or enable it.
  3. Apply the changes and close the dialog box.

To disable an inspection for highlighted issue in the editor

  • When you disable inspections this way, they are disabled for the current inspection profile.
  • To re-enable inspections disabled this way, use the main procedure described above.

  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>.

To disable inspections from the Inspection results report

  • When you disable inspections this way, they are disabled for the inspection profile that was used for running inspections. You can see it in the header of the Inspection Results window's tab.
  • To re-enable inspections disabled this way, use the main procedure described above.

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

See Also

Last modified: 19 July 2017