Although code analysis is performed on-the-fly in all open files, you may want to run it for the whole project or a custom scope and examine the results in a friendly view.
Run a code inspection
Open the desired file in the editor. Alternatively select files or directories in the Project Tool Window. For multiple selection, click the items while holding down the Ctrl key. The initial inspection scope will be confined to the opened file or the selection.
On the main menu, choose The Specify Inspection Scope dialog opens..
- 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.
- Specify the inspection profile to apply. Do one of the following:
Click OK to run code analysis.
Rather than running all enabled inspections, PyCharm Edu makes it possible to exactly specify the desired inspection by its name and run it to inspect the code in the specific scope.