This topic describes how to create and use custom categories.
Creating a custom category
To
create a custom category follow these steps:
- Open the Custom Rules and Categories page
of the Preferences by clicking .
- Click Add Category.
- In the Add Custom Category wizard:
- On the first page:
- Select the parent category for the new custom category.
Tip: Notice that the parent category can be any of the following:
- The COBOL Code Review domain.
- A regular category, such as Program Structures.
- Another custom category.
- Click Next.
- On the second page:
- Type a name for the new category.
- Click Finish.
The new custom category is created.
Exporting, importing, and other
tasks
You can also perform the following tasks on custom
categories:
- Export: To export all the current custom categories and their
rules to a file, click Export and specify a
file folder and a file name.
Note: Export
saves a copy of all the currently displayed custom categories and
their rules into a single data file. The existing contents of the
file, if any, are discarded. Export cannot be used to save individual
custom categories or rules.
- Import: To import a group of previously exported custom categories
and their contained rules, click Import and
select a file to import from. The file must be one that was created
by a previous Export operation.
Note: Import copies all the custom
categories from an export file into the Current Custom
Categories list. Import cannot be used to import individual
categories or rules.
Attention: Be careful not to
import a category with the same name as a currently displayed category.
In such a case the import operation tries to merge the imported category
with the currently displayed category, with unpredictable results.
For this reason you might want to export and delete all the currently
displayed categories before importing other categories. You can quickly
delete the currently displayed categories by clicking Restore
Defaults.
- Delete a category: To delete a custom category, select the category
and click Delete Category.
- Save: To save your recent changes, click Apply.
- Reset: To empty the list of custom categories and the list of
custom rules, click Restore Defaults.