IntelliJ IDEA 12.1.0 Web Help


A project can be divided into several areas of inspections, or scopes, where different inspections should apply. You can associate any inspection with the needed scope.


By default, if an inspection is not associated with a scope, it applies to all the sources of the current project.

To define scopes for an inspection
  1. Open the Inspections dialog box.
  2. Select the desired profile from the drop-down list. The inspections associated with the profile are displayed in the tree view.
  3. Select the desired inspection and click the Add button add on the toolbar.
  4. In the Choose Scope dialog box that opens select the area to apply the inspection to.


    You can configure custom scopes in the Scopes dialog box, in addition to default ones, like production, tests, etc.

  5. Apply the changes and close the dialog box.

See Also




Web Resources: