Adding a Custom Code Check Rule Set
- 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
- Go to the Task page and click the Rule Sets tab.
- 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.
- Click OK.
- 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:
- 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.
- Click Start Check to run the check task based on the custom rule set.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.