Running a code review
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 the Package Explorer view or Java Navigator view.
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.
To run a code review:
- Open the Code Review view (for details, see "Opening the Code Review view").
- In the Code Review view, specify what code base to run the review on:
- Click the down arrow next to the Review icon to see the list of code bases.
- 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.
Parent topic
Reviewing code automatically