This topic describes the programming languages and features
supported by the code review component.
The following table summarizes the features of Code
Review that are available for
COBOL and PL/I.
The features are explained in more detail following the table.
Table 1. Features of code review in
Developer for System z| Features |
COBOL |
PL/I |
| Common features |
✓ |
✓ |
| User-written custom rules |
✓ |
Not supported. |
| Code review application, with batch capabilities |
✓ |
✓ |
- The common features of Code Review for COBOL and PL/I include:
- An analysis configuration editor for creating reusable profiles
for performing code reviews:
- Controls for specifying the source code files to be reviewed and
the coding rules to be applied.
- Selectable built-in coding rules with severity levels.
- Configurable built-in custom rules.
- Built-in and custom categories for organizing coding rules.
- A Software Analyzer Results view for displaying code review results
and generating reports:
- Retention of multiple code review results while Developer for System z® is running.
- A setting for filtering the display of
results.
- Reports of the results of a code review, in HTML or PDF format.
- Links from code review results directly to the source code files
in which the results were found, opened in the LPEX, COBOL, or PL/I
editor.
- Support in the LPEX, COBOL, and PL/I editors:
- Marking lines of source code where code review problems are found,
using text highlighting and bookmarks.
- Quick access to the problem lines in a source code file flagged
by a code review result.
- Quick rerunning of a code review to verify fixes.
- One-at-a-time code review of remote source code files.
- Distribution of code review profiles:
- Export and import of code review profiles.
- Distribution of code review profiles to clients using push-to-client
software.
- In addition, Code Review for COBOL supports user-written custom
rules. The features include:
- Quick generation of plug-in projects for developing user-written
rules,
- Generation of Java™ source
code files providing a framework for a user-written rule.
- A Java API providing classes
for user-written custom rules.
- A Java API for accessing
the COBOL language elements of a source code
file when it is being reviewed.
- Support of many COBOL language elements.
- The command-line code review application is supported
for COBOL and PL/I. The features include:
- Running from the Linux or Windows command line.
- Support for language-specific standard rules (COBOL
and PL/I), custom rules and categories (COBOL and PL/I), and
user-written custom rules (COBOL only).
- Batch support for processing multiple projects or directories.
- Scope options for processing projects, directories, or all the
projects in the workspace.
- Support for include lists and exclude lists of specific files.
- XML and CSV data output files.