CxCMDLineCounter - Count Lines of Code

When uploading a project for scanning, and you would like to know how many lines of code (LOC) are to be scanned, you can use Checkmarx's Cx CMD Line Counter utility.

To count the lines of code for a project:

 1. Download and extract the zipped CxCmdLineCounter.exe. from Checkmarx Utilities.

 2. Open the Command Line Interface (CMD) window and navigate to the folder that contains the CxCmdLineCounter.exe

 3. Run:

    For example: 

Using the example above creates a file named "TestProject.txt" in the projects folder that has the number of counted lines of the entire code under "C:\projects\TestProject".