Rule properties, such rule properties as Rule ID, header, severity, author, and description, are tags that help Parasoft tools implement the rules.

  1. Right-click the unused area of the right panel and choose Properties from the shortcut menu.
  2. Enter rule information in the Properties and Description tabs.


You must enter a rule ID and header

If a rule does not have an ID, you will not be able to run your rule with Parasoft’s static analysis. If a rule does not have a header, rule violations will not be correctly reported in the static analysis results.

Properties 

You can specify the following properties:

Rule ID

Type the category and rule name in the category.name format. Parasoft static analysis will organize your rules according to category, then according to name.

For example, if you want to add a rule to the Naming Standards category (abbreviated NAMING), you could enter NAMING.MYRULE. If you want to add a rule to the Possible Bugs category (abbreviated PB), you could enter PB.MYRULE. If you want to add a rule to a new category that will use the abbreviation TEAM, you could enter TEAM.MYRULE.

HeaderType the name that you want to assign to this rule. The specified header will be shown in the list of rules and in report/results when this rule is violated.
AuthorIndicates the name of the rule's author. This property is optional.
Category (for HTML and CSS only)Specifies which category the rule belongs to.
Rule fileAssociates the rule with a rule description file you have created.
Severity

Choose the severity level for that rule. The severity level indicates the chance that a violation of the rule will cause a serious error. Options are:

  • Lowest
  • Low
  • Medium
  • High
  • Highest

Descriptions

The Description tab provides a space for adding rule details, such as the purpose of the rule, patterns it is intended to prevent, and other specifics. Along with the other properties, the description will be added to the help file created for this rule. To view this documentation, click the View RuleDocs toolbar button. To update this documentation, click the Update RuleDocs toolbar button.

  • No labels