Viewing results

After you run a code review, you can view the results that are generated.

Before you begin

You must create a software analysis configuration and run it.

About this task

The results of a code review are stored in an analysis history. In the Software Analyzer Results view, you can select an analysis history, view its contents, and save the results to a file. When you run a code review, the software analyzer automatically opens the Software Analysis Results view to display the results. You can also open the view manually.

Procedure

  1. To open the Software Analyzer Results view:
    1. Click Window > Show View > Other.
    2. Click Software Analyzer > Software Analyzer Results.
    3. Click OK.
    The Software Analyzer Results view opens. The left pane lists the analysis histories of the code reviews run since the workbench was last opened. The most recent analysis history is at the top of the list. Each history is a compilation of the results from a single code review.
  2. In the left pane, click the analysis history that you want to view. The results in the history are displayed in the right pane.
  3. Optional: To delete the history, right-click the entry and click Delete.
  4. Optional: In the right pane, in the toolbar, you can switch between two display modes:
    • To display all the rules that you selected in the analysis configuration, even if the code review found no violations of the rule, click Show all selected rules and results Show all selected rules and results.
    • To display only the selected rules for which the code review found violations, click Show only rules with results Show only rules with results.
  5. Expand a rule that contains results and view the results. The results are grouped according to category, rule, source file name, and line number.

What to do next

To fix a problem reported in a result, see Fixing a problem reported in a result.

To save any of the analysis histories that are displayed in the Software Analyzer Results view, generate a report or open the analysis history in a browser and save it to a file on your workstation. For more information about generating and saving reports, see Generating and saving reports.


Feedback