Automatic Rule Creation
One of RuleWizard's most powerful features is the Auto-Create Rules function. You can indicate what code you don't want to appear and RuleWizard does the rest.
To have RuleWizard automatically generate a rule based on dictionary elements:
- Right-click in the white space of the Node tab and choose Auto-Create Rules from the short-cut menu. The Automatic Creation window will open.
- In the RuleWizard Automatic Creation window, type the code you do not want to appear in your program into the Sample Java section.
- Click Create.
The graphical representation of the rule appears with nodes and conditions in the GUI's right panel.
- Right-click the Output arrow, replace the text, "Replace this with your own text", then click OK.
- Right-click the gray area in the GUI's right panel and choose Properties.
- In the Rule Properties window, type over the "Automatic Rule" text in the Header field, and specify any other properties.
- Click OK.
- Choose Rule> Save to save the rule.
- In the Save As window, type a name for the rule in the File name field and click Save.
- The rule is saved.
- Once the rule is saved, you can have Jtest enforce it. For more information, see How to Automatically Enforce Your Custom Coding Standards
|