PyCharm 4.0.0 Web Help

Rather than running all enabled inspections, PyCharm makes it possible to exactly specify the desired inspection by its name and run it to inspect the code in the specific scope.

To run a code inspection by name
  1. On the main menu, choose Code | Run Inspection by Name, or press Ctrl+Shift+Alt+ICtrl+Shift+Alt+ICtrl+Shift+Alt+ICtrl+Shift+Alt+ICtrl+Shift+Alt+ICtrl+Shift+Alt+ICtrl+Shift+Alt+ICtrl+Shift+Alt+IShift Alt Command IShift Alt Command IShift Alt Command I.
  2. In the pop-up frame that opens, start typing the inspection name. As you type, the suggestion list shrinks to show the matching inspection only.

    Tip

    Use CamelHumps to match camel case words and white spaces to match initial letters of the words.

    py_inspectionByName

    The Specify Inspection Scope dialog box opens.
  3. In the Inspection scope area, specify which files should be inspected.
    • To have the source code of the entire project inspected, select the Whole Project option.
    • If you are using version control integration, you can choose to only inspect uncommitted files.
    • To run an inspection for the currently opened file, or the file(s)/folder(s) selected in the Project view, select the File/Module <name> option.
    • To apply inspect code in a specific scope, select the Custom scope option, then choose the desired scope from the drop-down list or click the Browse button browseButton and configure a new scope in the Scopes dialog box.
  4. To have test source files inspected too, select the Include test sources check box.
  5. To apply inspection only in files matching the specific mask, select the File Masks(s) and specify the file mask. Use comma to separate multiple file masks.
  6. Click OK to run the inspection.
  7. Examine results in the Inspection window.

See Also

Concepts:

Procedures:

Reference:

Web Resources: