CodeArts Check system ruleset not enough? Take you through how to create and enable custom rule sets

CodeArts Check is a cloud-based code checking service. Based on the accumulation of years of automated source code static inspection technology and the precipitation of enterprise-level application experience, it provides users with rich inspection capabilities such as code style, general quality, and network security risks, provides comprehensive quality reports, and convenient closed-loop problem handling, helping enterprises Effectively control code quality and help enterprises succeed.

But after you are proficient in using the Check service, do you feel that the current system rule set provided by CodeArts Check is not enough? Still want more and more comprehensive rules? Don't worry, this article will show you how to create and enable custom rule sets.

View system rule sets

Enter CodeArts, select "Service - Code Inspection" at the top of the page, and enter the code inspection page.

image.png

Click on the rule set, and all system-level rule sets will be displayed on the home page.

image.png

Click anywhere on a ruleset to view the rules grouped within it.

image.png

Create a custom ruleset

If you have a good understanding of the system rule set in the later stage and feel that the rules in the current system rule set are not enough, you can create a custom rule set.

On the Rule Sets page, click New.

image.png

In the pop-up interface of "Create new inspection rule set", enter the custom rule set name (required), description (optional), inspection language (required), and copy from (optional). If a rule set in "Copy from" is selected, all the rules in the rule set will be inherited, and on this basis, we can choose or reject the rules.

image.png

We have not selected any rule set in "Copy from", so after creation, we will find that 0 is enabled and 500+ is not enabled.

image.png

In the disabled rule, select the required label in the user label.

image.png

Select the corresponding rule and click Save.

image.png

After saving, you can see that the selected rule is in the "Enabled" state.

image.png

enable rule set

Click an existing task, click "Settings-Rule Set", and the language included in the task will be automatically displayed:

image.png

Select the corresponding custom rule set, a pop-up window will prompt, click OK.

image.png

When you see the pop-up prompt of "Setting the rule set successfully", the subsequent scans of the task will use the rules in the rule set.

image.png

Guess you like

Origin blog.csdn.net/hwxiaozhi/article/details/131758674