Running code reviews

Running code review lets you analyze your code by applying a specified set of rules to a code base. The rules can be applied to one project, a single source file, or the entire workspace, depending on the nature of the rule. Optionally, you can configure the code review (for details, see "Configuring code review") to only show a specific set of findings. After you decide the scope of the review, you run the code review by clicking the Review icon, . You can run a code review from the Code Review view itself or from the pop-up menu of such views as the Package Explorer, Java™ Navigator, or Project Explorer.

All the files in the code base must be compilable when you run the review on them. For more information about recommended prerequisites for running a code review, see the "Prerequisites to run a code review" Help topic.
Note: You can run a Structural Analysis code review on the workspace, a working set, or a project. However, if you run it on a single file, no results are displayed.
To run a code review:
  1. Open the Code Review view (for details, see "Opening the Code Review view").
  2. In the Code Review view, specify what code base to run the review on:
    1. Click the down arrow next to the Review icon to see the list of code bases.
    2. From the list, click Review Workspace to review the entire workspace or Projects to choose a project from the list of projects in the workspace.
Once you select a code base from the Review menu, the code review begins to run. You can track its status by checking the progress bar in the lower-right corner of the view. The findings appear dynamically in the Code Review view as the review runs.
During the code review, the Review icon, , changes to the Stop Review icon, . Click the Stop Review icon, , to stop a code review in process.
Related concepts
Code reviews
Code review rules
Rule categories
Related reference
Prerequisites for running code reviews
Rule Category Descriptions
Types of code review
Code Review view
Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.