Running CodeCheck from the Command Line

CodeCheck can be set up to run from the command line using Und if that is your preferred work environment, or if you are looking to automate the task. For more details on how to use Und see this page.

To run CodeCheck from the command line, first you will need to export the CodeCheck configuration file from the Understand GUI that has the checks you wish to run selected.


Once that is saved to a file, the command line option is

und codecheck C:\path\to\configuration.ini C:\path\to\OutputDir C:\path\to\UnderstandProject.udb  

Where configuration.ini is my saved configuration file, the results are saved to the OutputDir, and it is running the checks on UnderstandProject.udb.

If you are calling CodeCheck as part of your build process and want it to throw an error if violations are found, there is a switch, -exitStatus, that will return the number of violations as the exit status or 0 if no violations were found.