You can prepare and implement custom static analysis rules to support your organization's specific development policy. Custom rules are created with a separate tool called Parasoft Rule Wizard (not included with DTP; contact your Parasoft representative for information) and executed as part of a test configuration by a DTP Engine.
Custom rules can be stored in DTP, which enables you to view the custom rule in the test configuration administration page and enable/disable the rule for selected test configurations. The configurations stored in DTP can be ran by DTP Engines that are connected to the server, which ensures coding consistency. Also see Test Configurations.
In this chapter:
Refer to the Rule Wizard documentation for instructions on creating custom rules (not included with DTP; contact your Parasoft representative for information). Rule Wizard outputs custom rules in a .rule file. Documentation for the rule is also created in Rule Wizard.
You can enable uploaded rules for test configurations used by the DTP Engine. See Static Analysis - Rules Tab for information on how to enable rules for a test configuration.
The DTP Engine must also be configured to use the updated test configuration (see the DTP Engine documentation).
In the DTP Engine .properties configuration file, enable the following setting to ensure that the engine can use the test configuration containing the custom rule(s):
dtp.share.enabled=true
This is property is required because custom rules are stored in Team Server in the main root data storage account for DTP server.
You can also enable custom rules in DTP Engines without including DTP to your workflow. Refer to the DTP Engine documentation for instructions on how to define and use the custom rules in DTP Engines.