Run code inspections from the command line
note
Code inspections rely on a properly defined project SDK.
You can find the executable for running IntelliJ IDEA in the installation directory under bin. To use this executable as the command-line launcher, add it to your system PATH
as described in Command-line interface.
- Syntax
idea64.exe inspect <project> <inspection-profile> <output> [<options>]
note
Use
idea.exe
for 32-bit versions of Windows.- Example
Inspect the C:
\MyProject directory of the C:\MyProject project using the C:\src \MyProject profile with maximum verbosity, and save results to an XML file under C:\.idea \inspectionProfiles \MyProfile.xml \MyProject :\InspectionResults >idea64.exe inspect C:\MyProject C:\MyProject\.idea\inspectionProfiles\MyProfile.xml C:\MyProject\InspectionResults -v2 -d C:\MyProject\src