Help Center> CodeCheck> User Guide> (Optional) Configuring a Rule Set> Customizing a CodeCheck Rule Set
Updated on 2022-09-29 GMT+08:00

Customizing a CodeCheck Rule Set

  • In addition to default rule sets, you can also customize rule sets.

    After customization, use the custom rule set for a CodeCheck task.

  • At least one rule must be set for each rule set template.

Prerequisites

Currently, only rule sets in a single language can be configured. That is, only check rules in the same language can be configured for one rule set.

Procedure

  1. On the CodeCheck homepage, click the Rule Sets tab. The Rule Sets tab page is displayed by default.
  2. Click New to add a custom rule set.

    In the Add Rule Set dialog box that is displayed, set the rule set name, Language, and rule set base, and click OK.

  3. Configure check rules for the rule set.

    Select a rule name and set the issue level as required.

  4. Change the check rule set used by the CodeCheck task to the custom rule set.

    Go to the CodeCheck details page, choose Settings > Rule Sets, enable for the target language, and select the custom rule set configured for the target language.