Selecting rules for the Complete code review

By default all rules included in a code review are enabled. You can change this by deselecting any rules that you do not want applied when you run a code review.

To review and select rules:
  1. Click Window > Show View > Other, expand Java, select Code Review, and click OK. The Code Review view opens.
  2. Click Window > Preferences. The Preferences window opens, showing the Code Review page.
  3. In the left pane, expand Java, then select Code Review.
  4. 3. In the Select Code Reviewlist, select Complete Code Review and then click Expand All. This expands each rule category and displays all the rules. The number of rules in each category appears after the category name.
  5. Click the rule that you want to get details on. The following information is available in the field at the bottom of the window:
    1. Description: Review the detailed explanation of the selected rule. This tab does not appear for a user-defined rule.
    2. Examples: See a code sample that does not adhere to the rule. Think of this as the "Don't" example. This tab does not appear for a user-defined rule.
    3. Solutions: Read steps to refactor the code and see a code sample that does adhere to the rule. Think of this as the "Do" example. This tab does not appear for a user-defined rule.
    4. Properties: Change the severity level for the rule, or change the numeric value for the rule, if applicable. Not all rules have numeric values.
    5. Resource Filters: Specify files that you do not want the selected rule applied to during a code review.
  6. Clear the check box of any rule that you do not want applied when you run the selected code review.
  7. Click OK.
Terms of use | Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.