Analyzing code with the code review application for Windows

Learn how to use the code review command-line interface on Windows to analyze source code files.

Procedure

Follow these steps to run the code review application. For more information about completing each step, click the links.

  1. To create a rule file, export rule information in the software analysis configuration window.
    For information about creating a rule file, see Exporting and importing rules.
  2. Choose the values that you want to use as parameters when you start the code review application. Examples include the workspace, the projects and directories where the source code files are located, and the paths of the rule file and the output file.
    For more information about the code review application parameters, see Parameters of the code review application command for Windows.
  3. Close any open Eclipse workspaces.
  4. Allow any running instances of the code review application to run to completion.
  5. Open a console window on Windows.
  6. Enter the command to run the code review application and wait for it to complete.
    For more information about the command syntax, see Syntax for the code review application start command. Initially, you might want to use the sample script to start the application. For more information about the sample script, see Running the sample script.
  7. View the contents of the output file and the generated data files. For more information about obtaining analysis results, see Output data files and Information written to standard output.
  8. Optional: You can clean up the temporary projects that are created by the -directory parameter of the code review application.
    If you choose to do this step, proceed carefully. For information about how to clean up temporary projects, see Deleting temporary projects created by the -directory parameter.