PhpStorm 8.0.0 Web Help

If you think that some inspections report about the problems that you are note 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:

Note

Note the difference between disabling and suppressing code inspections: By 'suppressing' an inspection, PhpStorm inserts a special comments that tell the code analysis engine to ignore the issues found by the inspection in a specific piece of code. By 'disabling' an inspection, you just turn it off so the code analysis engine stops ignores all code issues.

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. To find the desired inspection, expand the grouping nodes or use the search field.

    php_storm_settings_inspections.png
    Click thumbnail to view larger image.

  3. Note that inspections, whose state is changed relative to the default values, and all their grouping nodes are highlighted with blue.
  4. Use the check box next to the inspection to disable or enable it.
  5. 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 ShowIntentionActionsAlt+EnterAlt+EnterAlt+EnterAlt+EnterAlt+EnterAlt+EnterAlt+Enter, Shift+Alt+J or Ctrl+Shift+MAlt EnterAlt EnterCommand 1 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 window's tab.
  • To re-enable inspections disabled this way, use the main procedure described above.
  1. In the Inspection 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

Concepts:

Procedures:

Reference:

Web Resources: