Run code inspections from the command line
Last modified: 19 October 2021
You can find the executable for running CLion 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
clion64.exe inspect <project> <inspection-profile> <output> [<options>]
- 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 >clion64.exe inspect C:\MyProject C:\MyProject\.idea\inspectionProfiles\MyProfile.xml C:\MyProject\InspectionResults -v2 -d C:\MyProject\src