Configuring a Custom Rule Set
CodeArts Check supports custom rule sets. Each rule set must contain at least one rule.
A rule set can be configured with only one language.
Purchase the code security check enhancement package as required before using CodeArts Check. This package identifies code security risks and vulnerabilities more comprehensively for Java, C++, Go, and Python.
Video Tutorial
This video demonstrates how to use a custom rule set to check code from CodeArts Repo.
Customizing a Rule Set
- Access CodeArts Check through a project.
- Click the Rule Sets tab.
- Click Create Rule Set. In the displayed dialog box, enter a rule set name and description, and select a language.
You can also copy an existing rule set by selecting it from the Replicated in drop-down list.
- Click OK.
- Select rules, set rule levels as required, and click Save in the upper right corner.
- Click the rule set name to go to the details page.
- Alternatively, on the details page, click Export to export the enabled rules in the rule set to the local PC and view the rule details.
- On the details page, click Modify Basic Info to modify the rule set name or description.
- The Language cannot be modified.
- Preset rule sets cannot be modified.
- Custom rule sets can be deleted only by the one who created them.
- Click in the row where the rule set is located and choose Delete Set.
- Custom rule sets can be deleted only by the one who created them.
- System rule sets and custom rule sets in use cannot be deleted.
- To delete a rule set being used by a code check task, you can either delete the task or assign another rule set to the task.
Using a Custom Rule Set
- Go to the task details page, and choose Settings > Rule Sets.
- If any changes are made to the code repository after you create a code check task, click in the Languages Included row to re-obtain the target language, and enable the switch of language.
- Click to select the created custom rule set.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot