Exporting and importing rules in the editor

You can export or import code review rules from the analysis configuration editor to a local rule file. A rule file is required to run the code review application on the command line.

Exporting rules to a rule file

About this task

The exported information includes selected rules and their assigned severities. It does not include scope information.

Procedure

To export a set of rules from the analysis configuration editor:

  1. In the left pane, select an analysis configuration.
  2. In the right pane, on the Rules tab, select the check boxes beside the rules that you want to export and then click Export. You can select domains, categories, and individual rules.
  3. Follow the instructions in the wizard to export the rule set to a file on the workstation. The file must have the extension .dat.

Results

The exported rules are written into the specified file.

Importing rules from a rule file

About this task

The imported information includes a group of rules and their assigned severities. It does not include scope information.

Procedure

To import a group of rules into a selected analysis configuration:

  1. In the left pane, select the analysis configuration into which you want to import rule information.
  2. In the right pane, on the Rules tab, click Import.
  3. Follow the instructions in the wizard to import the rules. The file must have the extension .dat.

Results

The rules in the rule file are imported into the Rules tab of the selected analysis configuration. Any prior rule of the same name is overwritten.

Feedback