Exporting a rule configuration

You can modify and disable rules to create your own rule configuration. You can export that configuration to a file that other team members can import. This allows the team to efficiently share a customized rule configuration to ensure that they run consistent code reviews that apply exactly the same rules and settings.

You must modify and disable rules to create your own rule set before you can export it.

To export or import a code review rule configuration:

  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. In the Preferences window, click Export to export a rule configuration.

  5. In the Export Code Review configuration window, under Export Code Review, do any of the following, depending on what you want to export to the file:

    1. Click Export configuration settings to export the settings that determine which rules and categories to disable in a code review.

    2. Click Export rule properties to export the severity level and numeric values for rules.

    3. Click Export user-defined rules to export rules you created that are specific to your application.

  6. In the Save to Zip file field type a file name or click Browse to select a file from in the Select window.

  7. Click Finish.

 

Parent topic

Creating a user-defined rule