RuleWizard can automatically create rules that flag a given code pattern (see Creating a Rule Automatically). In this lesson, you will learn how to use the Auto-Create feature to create two rules:
Creating the Basic Rule Pattern
Customizing the Output MessageWe need to specify what to print when this rule is violated.
The rule is now functionally complete, but additional steps must be taken before it can be used. Customizing Rule PropertiesAt a minimum, you must specify a rule ID and a rule header (name).
Saving and Enabling Your RuleBefore you can check your rule, you need to save and enable it as described in Saving and Enabling Rules. Viewing Rule DocumentationInformation about the rule will be included in RuleWizard’s Rules Documentation files. To view this documentation, click the View RuleDocs button in the toolbar. To refresh this documentation, click the Update RuleDocs button in the toolbar. These buttons are described in the Tool Bar chapter. |
Creating the Basic Rule Pattern
The basic functionality of your rule is configured. Modifying the Rule Pattern
Customizing the Output MessageWe need to specify what to print when this rule is violated.
The rule is now functionally complete, but the rule properties must be set before it can be saved and enabled. Customizing Rule PropertiesAt a minimum, you must specify a rule ID and a rule header (name).
Saving and Enabling Your RuleBefore you can check your rule, you need to save and enable it as described in Saving and Enabling Rules. Viewing Rule DocumentationInformation about the rule will be included in RuleWizard’s Rules Documentation files. To view this documentation, click the View RuleDocs button in the toolbar. To refresh this documentation, click the Update RuleDocs button in the toolbar. These buttons are described in the Tool Bar chapter. |