IntelliJ IDEA 2018.3 Help

Running Inspection by Name

Running a single inspection is useful in case you want to track a specific problem. If you find a warning in a file, you can inspect your entire project, or the necessary scope of files, to ensure that there are no more such warnings in your code base.

  1. From the main menu, select Analyze | Run Inspection by Name (Ctrl+Shift+Alt+I).

  2. Type the inspection name in the popup. The suggestion list will show you inspections that match your search request.

    If you are not sure that you are selecting the correct inspection, you can view its description. To do so, select an inspection in the popup and press Ctrl+Q.

  3. Double-click the necessary inspection to open its settings.

  4. In the dialog that opens, select the scope of files that you want to analyze.

  5. The File Masks(s) option helps you narrow down the number of files that will be inspected.

    Select the checkbox and specify a pattern of characters and wildcards that matches names of files you want to analyse. Use comma to separate multiple file masks.

  6. Some inspections might have additional options that you will be prompted to configure.

    These settings will be applied only to this inspection run. In your current profile, configuration of this inspection won't change.

The IDE will show you the inspection results in a tool window. There you can examine and fix detected problems.

Last modified: 1 February 2019

See Also