PyCharm 2016.3 Help

Inspections

File | Settings | Editor | Inspections for Windows and Linux
PyCharm | Preferences | Editor | Inspections for OS X
Ctrl+Alt+S
/help/img/idea/settings.png


Use this page to customize inspection profiles, configure inspection severities, disable and enable inspections, and configure inspections for different scopes. The page is divided into the following areas:

Profile management

ItemDescription
ProfileFrom this drop-down list, select the name of the profile to configure. All modified inspections are highlighted.

Note that the selected profile is automatically used for project highlighting after clicking Apply.

ManageClick this button to reveal the following submenu:
Copy as Global/Copy to ProjectFor the project level profiles, choose the command Copy as Global to move the selected profile to the global level.

For the global level profiles, choose the command Copy to Project to create the project level duplicate of the selected profile.

CopyChoose this command to create a copy, based on the current profile.
RenameChoose this command to change the name of the current profile in the Profile field.
DeleteChoose this command to delete the current profile. The pre-defined profiles cannot be deleted, so this command is only available for the user-defined profiles.
Add descriptionIf this command is selected, a text field appears to the right of the Manage button, enabling you to type in the description of the current profile. Press Enter to save the entered description, or Escape to cancel typing.
ExportChoose this command to export the selected profile as an xml file.
ImportChoose this command to import a profile from an xml file.

Toolbar

ItemTooltip and ShortcutDescription
/help/img/idea/search_field.pngUse this text box to search through the list of inspections. In the search field, start typing the desired inspection name, or any characters contained in the inspection name or description. PyCharm shows the list of matching occurrences.

As you type a search string, the matching inspections are highlighted. To finalize the search, press Enter. The used search strings are memorized in the history list.

  • find1.gif: Click this button to reveal the history list.
  • clear.png: Click this button to clear the search history.
/help/img/idea/commonfilter.pngFilter InspectionsClick this button to show the list of available filters:
/help/img/idea/filter_inspections.png

Click the desired filters to reduce the list. The command Reset Filters becomes available, if some of the filters are checked.

expandAll.png/collapseAll.pngExpand All/Collapse All
Ctrl+NumPad Plus
Ctrl+NumPad -
Click these buttons to have all inspection nodes expanded/collapsed.
resetProfile.pngReset to EmptyClick this button to have all the check boxes of the profile cleared and thus disable all the profile inspections.
/help/img/idea/cogwheel_framed.pngAdvanced SettingsClick this button the show the menu with the following check commands:
  • Disable new inspections by default: select this check box, if you don't want the new inspections that appear after PyCharm update, to become available.
  • Reset to Default settings: select this check box to discard all changes.

Inspection severity and scopes

ItemDescription
DescriptionThis read-only field shows the description of the selected inspection.
Inspection severityFrom this drop-down list, select the desired severity to assign to the current inspection.

Refer to the section Configuring Inspection Severities for details.

ScopesClick this drop-down list to reveal the list of available scopes:
/help/img/idea/inspections_scopes.png

Clicking a scope in the list results in showing the scopes toolbar:

add.pngAlt+InsertClick this button to specify the scope for the selected inspection.
delete.pngAlt+DeleteClick this button to delete the selected scope for the current inspection.

Choosing the option Edit Scopes Order results in showing the Scopes Order dialog box, where one can change the order of scopes using the up and down arrows (arrowUp.png arrowDown.png) or keyboard shortcuts (Alt+Up/Alt+Down).

It is possible to select several inspections and add/remove scopes for the entire selection.

Options

This area is only available for some types of inspections, provided that an inspection of this type is enabled (the check box next to it is selected). Use the controls in this area to re-configure the default inspection settings.

See Also

Last modified: 23 November 2016