Rational® Developer for System z® and Rational Developer for AIX® and Linux provide the Software Analyzer tool that developers can use to ensure that their code conforms to their company's best practices. Rational Programming Patterns extends this tool to provide an analysis support for design entities and specific code from selected rules. The elements that do not conform to these rules are detected.
To start the analysis, right-click a selected file or project. Select Software Analyzer and the rule set that was previously defined. The Software Analyzer Results view displays the list of the broken rules in a tree-like structure. The first level represents the category, the second level is the rule, and the last level lists the instances in error. To see the details of a violation, right-click the file and select View Result. The generated file opens in the editor where the violation was detected and the line in violation is highlighted.
After correcting the violations and saving, you can start the analysis again to check that all the rules are respected.
If you use the application programming interface, you can create your own quality control rules that target the design entities or the generated source code (other than the COBOL code). For more information, see Customized micropatterns, patterns, or quality control rules for the Software Development Kit.