VS VB6 VBA
The sub-section of the section of the tab allows you create the programming rules to be checked when the Review Quality feature is executed with this review selected:
You can create programming rules to check some characteristic of:
- A single item (such as a project, file, class, etc.). In this case the programming rule checks that the value of a property meets some condition. For example, a programming rule can check that a ListView control doesn't have the LabelEdit property set to True.
- A collection of items (for example the collection of projects, the collection of controls of a form, etc.). In turn, for a collection of items a programming rule can check that:
- The property meets some condition. For example, a programming rule can check that method doesn't have more than 5 parameters.
- The collection contains an item that meets some set of conditions. For example, a programming rule can check that Projects collection contains a project with the some specific name or kind.
To create a new programming rule for an item you use the following window:
To create a new programming rule for a collection of items you use the following window:
In both windows you enter the following properties:
- (optional): an identifier for the programming rule.
- : a brief text describing what the programming rule checks.
- : the item or collection of items that is going to be reviewed.
- : depending on whether the is a single item or a collection of items, the content of this tab changes.
- When the item to review is a single item, you use a Condition editor to select a property of the item, an operator and a value or set of values.
- When the item to review is a collection of items, you can either define a condition for its Count property (with an operator and a numeric value), or a set of conditions collection that at least one item of the collection must satisfy. Each 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 to the developer how to make the review to pass.
Quality Review Options
When Condition Editor