Skip to content

Manage Analysis Rules

The topic describes the Analysis > Rulestab where the analysis rules and groups can be created and modified.

The analysis rules which are selected here will be used as default rules when performing analysis.

analysis-rules-1

The rule’s checked state controls whether the rule will be applied during analysis or not.

To create a new analysis rule, do the following:

  1. Choose a parent group

  2. Select the group and right-click to open its context menu

  3. Use the Newcommand and select the type of rule you want to create - Batch or Context Only rule

The Analysis Rule Designerwill be opened and you will be able to set rule properties, rule expression, rule parameters and test the rule.

See the How To: Create Analysis Rule with Rule Designer topic for more information.

To edit an analysis rule, right-click the rule to open its context menu and use the Edit command to open the Analysis Rule Designer.

To delete a given rule and all its instances, right-click the rule to open its context menu and use the Delete Allcommand.

analysis-groups-1

To create a new analysis group, do the following:

  1. Right-click a group or a rule to open its context menu and use the New -> Groupcommand

  2. Fill in the required rule properties

  3. Use the OKbutton to close the dialog and save the group

To edit analysis group properties, right-click the rule to open its context menu and use the Editcommand.

⚡ ** note: ** All groups with Group Stateproperty set to Enabledwill appear disabled on the Analysis > Rulestab.

The disabled group will appear grayed and will be also excluded from the list of analysis groups which are the user can select from before analysis.

To delete an analysis group, use the group’s Deletecontext menu command.

⚡ ** note: ** When an analysis group is deleted, all the rules which do not have other associated groups will be moved to the Orphaned Rules system group.

To add an analysis rule to a group, right-click the target group and use the Add Existing Rulecontext menu command.

A rule selector dialog will open and you will be able to select rules which will be added to the current group.

⚡ ** note: ** An analysis rule can be associated with multiple groups, but when the state of one of the rule instances is changed, the state of the other instances will be also changed.

If a rule is not associated with a group, it will be placed in a system group named - Orphaned Rules.

To remove an analysis rule from a specific group, select the rule under the group and use the Remove From Groupcontext menu command.

If this is the only left group to which the rule is associated, the rule will be placed in the Orphaned Rules system group.

Analysis rule can be imported from a saved file or saved to a file. To export an analysis rule:

1.Select rule from the list of existing rules.

2.Use the Exporttoolbar button to save the current rule to file.

To import a previously exported rule, do the following:

1.Use the Importtoolbar button to load the stored analysis rule from a file and add it to the current template.

2.After the import, the new rule will be added to the Orphaned rules group.

⚡ ** note: ** For how to export all rules from the current template or import rules from a saved template, see Analysis Template Import/Export .

The toolbar in the Analysis → Rulespage includes a toggle button that switches between Tree View and Grid View.

  • Tree View- a hierarchical, category-based rule browser.

  • Grid View- a high-density, editable table for bulk editing.

Tree View displays analysis rules organized by logical categories such as Bugs, Code Style, and Performance. Each rule includes a checkbox allowing quick activation or deactivation.

options-analysis-rules-tree-view

Key features include:

  • Category-based navigation

  • Rule activation via checkboxes

  • Double-click to edit a rule

  • Toolbar operations such as edit, delete, import, and export

  • Detailed rule description and parameters panel

Grid View displays all analysis rules in a sortable, editable table ideal for reviewing, comparing, and modifying many rules at once.

options-analysis-rules-grid-view

The following columns are available:

Column Description

Grid View is optimized for bulk editing, rapid scanning, and sorting by severity, priority, or effort.

Analysis Rules

How To: Create Analysis Rule with Rule Designer