Java preferences - Code Review page

Use the Java™ preferences Code Review page in the Preferences window to select which code review to run. On this page, you also configure the rule set by disabling rules you do not want applied in the review and modifying rule properties.

Left pane
Lists options for the Preferences window. Two pages are available to set code review preferences. Expand the Java category and click Code Review or Code Review > Excluded.
Select Code Review
Lists the code reviews you can choose to run. The tree-view list below displays the categories and rules in the selected code review. By default, all categories and rules are enabled. Clear the check box next to a category or rule to disable it.
New rule
Opens the New Code Review Rule wizard, where you can create a rule that is specific to your application.
Remove rule
Removes a user-defined rule from the configuration. This option is not available for supplied rules.
Move Rule
Opens the Select Category window, where you can move a user-defined rule to another category. This option is not available for supplied rules.
Show/Hide Search Box
Shows a text box in which you can type a search string. The search is performed on the current contents of the tree-view list, which change depending on what code review is selected.
Expand All
Expands all categories to show the rules in them.
Export
Opens the Export Code Review configuration window, where you can export a customized rule configuration to a zipped file.
Import
Opens the Select window,where you can select a zipped file so you can import a customized rule configuration.
Category and rule information
The information you see below the list of categories and rules varies depending on what is selected.
Category information
Describes the purpose of the rules in the selected category.
Rule information
Describes the following information, some of which you can modify, for a rule:
  • Description: Provides a detailed explanation of the selected rule. This tab does not appear for a user-defined rule.
  • Examples: Shows a code sample that does not adhere to the selected rule. This tab does not appear for a user-defined rule.
  • Solutions: Lists the steps to refactor the code.
  • Properties: Displays the severity level and, in some cases, the numeric values of the selected rule. Not all rules have numeric values. You can edit these properties.
  • Resource Filters: Lets you add, remove or edit a file name that you do not want the selected rule applied to.
Terms of use | Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.