Rational Developer for System z

Overview of software analysis

This topic provides an overview of software analysis in the COBOL and PL/I Code Review components.
The software analysis is guided by a software analysis configuration, which is created in the software analysis configuration editor. The configuration contains two types of information:

When you run a software analysis configuration, the code review runtime component applies the rules in turn to each source code file in the scope. For each rule, the runtime component scans the source code file looking for an violation: a segment of source code that is inconsistent with the rule.

For each violation, called a result, the runtime component records the rule ID, the source code file, the failing segment, and the line number where the failing segment begins.

When you open a source code file in the editor after a code review, each violation that was detected during the code review is marked by an icon in the left and right margins of the editor, next to the first line of the affected area. Hovering the mouse over either icon displays the text of the rule.

You can view the complete results of the code review in the Software Analysis Results view. Clicking a result and then clicking View Result causes the relevant source code file to be opened in the editor and positioned at the location of the violation.

Thus a developer can run a code review and look at the results to see if any violations were detected. If so, then from the result the developer can immediately open the source code file at the point where the violation was found and fix the problem.

Additional features:

The code review application, launched from a Linux or Windows command line, has the same code analysis capabilities as the user-interactive code review. It also has batch capabilities, can analyze files residing inside or outside of the product workspace, supports an include list and an exclude list of individual files, and generates output data files in XML and CSV format.


Feedback