Configuring Rules and Rule Sets

You can configure code analysis and specify which rules are enabled for a rule set and which rules and rule sets appear on the context menus. You can also import new rules and rule sets.

  1. In the IDE, click Analyze > Micro Focus Code Analysis Manager.
  2. Click the available tabs to specify the following options:
    Rule Sets Manager
    Use the available check boxes to specify which rules will be active within each rule set.
    Context Menu Commands
    Click either Rule Sets or Rules and use the arrows to specify what rules and rule sets should be visible on the context menu as favourite options.
  3. Use the field to add import new rules and rule sets into the IDE.

To import new rules and rule sets:

  1. In the Micro Focus Code Analysis Manager dialog box, click Browse next to Folder for additional rules definition files.
  2. Navigate to and select the folder that stores the files with your custom rules, then click Select Folder.
  3. Click Update.

    This loads the rules in the IDE.

  4. Click the Context Menu Commands tab, and then click Rules.
  5. Use the arrow buttons to move any rules to the Rules shown under 'Code Analysis' menu pane.

    These rules will be available from the context menu.