Rational Developer for System z

Working with custom categories

This topic describes how to create and use custom categories.

Creating a custom category

To create a custom category follow these steps:

  1. Open the Custom Rules and Categories page of the Preferences by clicking Windows > Preferences > Software Analyzer > Custom Rules and Categories.
  2. Click Add Category.
  3. In the Add Custom Category wizard:
    1. On the first page:
      1. 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.
      2. Click Next.
    2. On the second page:
      1. Type a name for the new category.
      2. 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.


Feedback