Deze pagina is nog niet beschikbaar in uw eigen taal. We werken er hard aan om meer taalversies toe te voegen. Bedankt voor uw steun.

On this page
Help Center/ CodeArts Check/ User Guide/ (Optional) Configuring Rule Sets/ Adding a Custom Code Check Rule Set

Adding a Custom Code Check Rule Set

Updated on 2023-11-28 GMT+08:00
  • In addition to system rule sets, you can customize rule sets.
  • At least one rule must be set for each rule set template.

Prerequisite

A rule set can be configured with only one language.

Procedure

  1. Go to the Task page and click the Rule Sets tab.
  2. Click Create Rule Set. In the displayed Create Rule Set dialog box, enter a rule set name and select a language.

    (Optional) You can also copy an existing rule set by selecting it from the drop-down list.

  3. Click OK.
  4. Select rule names, set issue levels as required, and click Save in the upper right corner.

    The following uses a code security check enhancement package of a Java rule set as an example:

  5. Go to the View Task Details page, click Settings tab, and choose Rule Sets. On the displayed page, click in the row where Languages Included is located to re-obtain the code repository language, enable the target language, and select the configured custom rule set. For details, see Configuring a Rule Set.
  6. Click Start Check to run the check task based on the custom rule set.
Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback