The sub-section of the section of the tab allows you create the nomenclature rules to be checked when the Review Quality feature is executed with this review selected:
The nomenclature rules can use control tags and type tags that are defined in the Control Tags Options and Type Tags Options.
To create a new nomenclature rule you use the following window:
In this window you enter the following properties:
- (optional): an identifier for the nomenclature rule.
- : a brief text describing what the nomenclature rule checks.
- : the item whose name is going to be reviewed. It can be any item, project, file, form, any control, any code element, class, field, etc.
- : you can review the name of an item in several ways.
- The name must use a convention of prefixes, suffixes and a specific case (Pascal, Camel, all upper case, all lower case). For example, you can define a rule to check that control names start with a custom control tag.
- The name must meet a condition with an operator and a value or a set of values. For example, you can define a rule to check that interface names start with "I". The condition is defined using a Condition editor.
- The name length must meet a condition with an operator and a numeric value. For example, you can define a rule to check that variables have more than one letter, to avoid names like i or j. The condition is defined using a Condition editor.
- (optional): you can define conditions (using a When condition editor) for the review to be executed. You can set that all, any or none of the conditions must be met.
- : the explanation tab has the field to describe in great detail what the review does and the field to explain the developer how to rename the item to meet the review.
Quality Review Options
When Condition Editor