Importing a rule configuration
You can modify and disable rules to create your own rule configuration, and then export or import a rule configuration.
After a team member creates and exports a rule configuration, you can import it from a zipped file. This allows everyone on the team to efficiently share a customized rule set to ensure that they run consistent code reviews that apply exactly the same rules and settings.
Before you can import a rule configuration, a configuration must be exported as described in "Exporting a rule configuration."To import a rule configuration:
- Click Window > Show View > Other, expand Java, select Code Review, and click OK. The Code Review view opens.
- Click Window > Preferences. The Preferences window opens, showing the Code Review page.
- In the left pane, expand Java, then select Code Review.
- In the Preferences window, click Import to import a rule configuration.
- In the Select window, click the zipped file you want to import and click Open.
- In the Confirm window, click Yes.
- The Restart window opens. The message says that, for changes to take place, the workbench needs to be restarted. Click Restart now or Restart later so the changes can take effect.
Parent topic
Creating a user-defined rule