PyCharm 2024.2 Help

Inspections

Use this page to customize inspection profiles, configure inspection severity levels, disable and enable inspections and configure inspections for different scopes .

Inspections settings

Modified inspections are highlighted in blue.

Manage profiles

the Profile list and the settings icon

Profile

Select the name of the profile you want to configure.

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

Show Scheme Actions

  • Copy to IDE/Copy to Project: create a copy of the selected profile on the project or global (IDE) level.

  • Duplicate: create a copy of the current profile.

  • Rename: rename the profile.

  • Delete: remove a profile. You can only delete custom profiles.

  • Add Description: write some description for the current profile. After you type the text, press Enter it, or Escape to discard.

  • Export: save the current profile to your computer as an XML file.

  • Import Profile: import a previously exported profile.

  • Restore Defaults: restore the default inspection settings.

Toolbar

Item

Tooltip and Shortcut

Description

Search

Search

Search through the list of inspections. Your search requests will be stored.

Filter Inspections

Filter Inspections

Show the list of available inspections filters.

To reset the applied filter, click the Filter Inspections icon and select the Reset Filter option from the list.

Expand AllCollapseAll

Expand All Ctrl+NumPad +

Collapse All Ctrl+NumPad -

Expand/collapse all inspections.

Reset to Empty

Reset to Empty

Disable all inspections.

Add Custom Inspection

Add Custom Inspection Alt+Insert

Add Search and Replace Inspections.

Remove Custom Inspection

Remove Custom Inspection Backspace

Use this button to remove your custom inspections.

Inspection severity and scopes

Item

Description

Description

The description of the selected inspection.

Inspection severity

Select the severity level for the current inspection.

Scopes

Select the scope of files to which you want to apply the current inspection.

Click Edit Scopes Order to switch to another dialog, where you can create a new scope or change the order of the existing scopes.

Options

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

For some inspections, you can define cases to be excluded from the inspection scope.

Ignore inspections

Click Add a case to be ignored in the table and add a code construct, variable, or error to be ignored.

Last modified: 08 October 2024