Rational Programming Patterns

Quality Control Rules

Rational Programming Patterns provides rules in Software Analyzer to perform the most common controls on generated COBOL files.

Implementation

Before invoking the analysis of the COBOL code, open the Software Analyzer Configurations dialog to define a configuration rules set and specify the following information:
  • The scope (analyze the entire workspace, a working set or one or more selected projects).
  • The COBOL rule set. You can change the severity for each rule (recommendation, warning, or severe).

To start the analysis, right-click a selected file or project. Select Software Analyzer and the rule set 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 COBOL file opens up 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.

For a complete documentation on the Software Analyzer, see the Rational Developer for System z online help, in the COBOL Code Review item of the Developing section.

Design Entities Analysis

Software Analyzer provides analysis support for the Rational Programming Patterns design entities.

There are three categories of rules that identify problems related to the design of entities:

Specific COBOL Code Review

Software Analyzer provides rules that apply only to the specific code inserted by the user in a generated COBOL program.
The Rational Programming Patterns rules can be differentiated from the Rational Developer for System z standard rules because they are all prefixed by RPP /.

There are four categories of RPP rules. The Pattern Driven Programming rules are specific and have no equivalent in Rational Developer for System z.
However, the rules of Naming Conventions, Performance, and Program Structures are equivalent to the rules existing in Rational Developer for System z, but they restrict the control to specific code portions.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)