Learn how to use the code review command-line interface
on Linux and 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.
- To create a rule file, export rule information in the analysis
configuration editor. For information about creating a
rule file, see Exporting and importing rules in the editor.
- Choose the values that you want to use as parameters when
you start the code review application. Examples include the workspace,
the projects or 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 Linux and Windows.
- Close any open Eclipse workspaces.
- Allow any running instances of the code review application
to run to completion.
- Open a console window in Linux or Windows.
- 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.
- 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.
- 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 Parameters of the code review application command for Linux and Windows.