The Code Review component includes features for creating
and enforcing coding rules for COBOL.
Features
- The following
information summarizes the features of Code Review that are available:
- An analysis configuration editor for creating reusable profiles
for reviewing code:
- 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 the development
workbench 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 COBOL
or Remote Systems LPEX editor.
- COBOL or Remote Systems LPEX editor:
- Marking lines of source code that contain problems with highlighted
text and bookmarks.
- Quick access to the problem lines in a source code file that is
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.
- 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 that provide a framework for a user-written rule.
- A Java API that provides
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. The features include:
- Running from the Linux or Windows command line.
- Support for language-specific standard rules,
custom rules and categories, and user-written custom rules.
- 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.
Supported perspectives
The following perspectives are
supported:
- AIX COBOL
- Enterprise Development
- Debug
- Java
- Java EE
- Plug-in Development
- Resource
Supported editors
The following editors are
supported:
- Remote Systems LPEX editor
- COBOL editor
From these editors, you can do the following tasks:
- Open the software
analysis configuration editor to create
a configuration or modify an existing one.
- Run an existing software analysis configuration.
- Find and fix problems that are detected by a code review.
When you view the results of a code review, to open the
appropriate editor for the affected source code file and position
it at the line of code that was cited in the result, right-click
a particular result and then click View Result.