Task: Get Line Counts and Parse Errors for a Project Without Analyzing It

Dry runs allow users to count lines and locate parse errors without consuming licensed lines. This is particularly useful if you want to check whether there are enough lines left on your license to analyze a particular project.



Method

  1. Mixing dry runs and analysis runs with the same CodeSonar project name is not supported, so choose a new project name to associate with your dry runs. We will refer to this as dryprojname.
  2. If this is the first dry run you have performed for dryprojname, create a project configuration file.
    codesonar create-conf dryprojname
  3. Open dryprojname.conf in a text editor, and add the following setting.
    DRY_RUN=Yes
    
  4. Execute the build/analysis for dryprojname (using the command line or the Windows build wizard).
  5. View the Analysis page for your dry run.
  6. Several forms of line count information are available.
  7. To view parse errors (if any), follow the steps in task Sanity Check an Analysis Run.

Links