Creating Your Own Static Analysis Rules
You can easily create your own static analysis rules using Jtest's RuleWizard feature. With RuleWizard, you create custom rules by graphically expressing the pattern that you want Jtest to look for when it parses code during static analysis. Rules are created by selecting a main "node," then adding additional elements in a flow-chart-like representation until it fully expresses the pattern that constitutes a violation of the rule. Rules are built by pointing and clicking to add graphical representations of rule elements, then using dialog boxes to make any necessary modifications. No knowledge of the parser is required to write or modify a rule.
To access RuleWizard, right-click the Rules button, then choose Launch RuleWizard from the shortcut menu that opens.
The RuleWizard UI will then open. The RuleWizard User's Guide (accessible by choosing Help> View in the RuleWizard UI) contains information on how to create, enforce, and enable/disable custom rules.
Related Topics
About Static Analysis
Performing Static Analysis
Customizing Static Analysis
Viewing Class and Project Metrics
|