Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space ENGINES1031 and version 10.4.2

...

You can change the basic properties of existing static analysis rules, such as name, severity, category, and ID, to help you achieve your organization's development policies and goals. For example, you can create new rule categories specifically for your company, such as "Company Standards" or "Company Safety Rules," and remap the built-in and custom rules to these new categories. You can also change the rule severities to target specific constructs. When rule properties are modified, the rule is considered to be "mapped".

Warning

After you have modified the rule properties in the rule map, the rule changes are applied to all test configurations built-in and user test configurations that are locally available.

In this section:

Table of Contents
maxLevel1

...

  1. Click the Rule Customization tab and locate the rule you want to customize. You can filter rules by typing in the search field or by enabling the Clones, Modified, or Custom filters.
    Image Modified
  2. Click on the rule in the table to view the rule properties and documentation.

    Image RemovedImage Added

    You can perform the following actions in the Rule Properties panel:

    1. Click in the Rule ID field to edit rule ID.
    2. Click in the Rule field to edit the rule name.
    3. Choose a severity from the Severity drop-down menu to change the severity of the rule.
    4. Click the [Edit Categories] Manage Category link to open the Rule Categories editor (see Editing Rule Categories).
    5. Click Clone to create a duplicate of the rule. Cloned rules use the same internal logic as the original rule. Use this option to customize rule properties while preserving the properties of the original rule. Cloned rules automatically appear in all test configurations and can be activated for execution.
    6. When you change rule properties, the original values are also displayed. You can click Default to reset the rule properties to their original values (see Reverting Rules to Default Categories).
      Image Removed
      Image Added

  3. Click Save to save any changes you made to the rule.

Anchor
Editing Rule Categories
Editing Rule Categories
Editing Rule Categories

You can change the category a rule belongs to in the Rule Categories editor. Click the [Edit Categories] Click the Manage Category link in the Rule Properties panel to open the editor.

Image RemovedImage Added

You can perform the following actions:

Anchor
Assigning Rules to Categories
Assigning Rules to Categories
Assigning Rules to Categories

  1. Choose a rule from the table in the Rule Customization tab and click Manage Category in the Rule Properties panel.
    Image Added
  2. Choose a category and click

...

  1. Assign.
    You can use the search field to search for the category you want to select or enable the Modified option to filter for custom categories (see Creating Custom Categories).
    Image Added
      
  2. Click Save in the Rule Properties panel to preserve the change.
    Image Added

Anchor
Creating Custom Categories
Creating Custom Categories
Creating Custom Categories

...

  1. Choose a rule from the table in the Rule Customization tab and click Manage Category in the Rule Properties panel.
  2. Click New Category.
  3. Specify a Category ID and Category Name when prompted.
    Image Added
  4. Click Save to add the new category to the list of available categories.
  5. Click Assign. The selected rule will be assigned to the new category.
    Image Added
  6. Click Save in the Rule Properties panel to preserve the change.

...


  1. Image Added

Removing Custom Categories

You can click the trash icon to delete the category.

Image Added

(warning) You cannot delete categories if rules are currently assigned to it. Assign rules to their default categories before (see Reverting Rules to Default Categories) to un-assign rules from the category before deleting it.

Anchor
Renaming Categories
Renaming Categories
Renaming Categories

Click in the Category field to change the category name. The category name will be saved after leaving the text field.

Image Added

(info) Changing the category name affects all the rules in this category.

...

You can click the revert button to reset the category name.

...

Anchor
Reverting Rules to Default Categories
Reverting Rules to Default Categories
Reverting Rules to Default Categories

You can revert rules to their default categories.

  1. Choose the rule from the table in the Rule Customization tab.  You can filter rules by typing in the search field or by enabling the ClonedModified, or Custom filters.
  2. Click Default in the Rule Properties panel.
    Image Added

Uploading Rule Map Files (rulemap.xml)

...