- What's New
- Function Overview
- Service Overview
- Getting Started
-
User Guide
- Working with CodeArts Check
- Purchasing CodeArts Check
- Configuring Project-level Role Permissions
- Creating a Task
- Configuring a Task
- Executing a Task
- Viewing Check Results
- Querying Audit Logs
- Reference
- Best Practices
-
API Reference
- Before You Start
- API Overview
- Calling APIs
-
APIs
-
Task Management
- Creating a Check Task
- Deleting a Check Task
- Querying Tasks
- Executing a Check Task
- Stopping a Check Task
- Querying the Status of a Task
- Querying Historical Check Results
- Querying Selected Rule Sets of a Task (Version 2)
- Querying Selected Rule Sets of a Task (Version 3)
- Querying the Check Parameters of a Rule Set (Version 2)
- Querying the Check Parameters of a Rule Set (Version 3)
- Configuring the Check Parameters of a Task
- Modifying the Rule Set in a Task
- Querying Check Failure Logs
- Obtaining the Directory Tree of a Task
- Ignoring Directories of a Task
- Querying Advanced Configurations of a Task
- Configuring Advanced Configurations for a Task
- Issue Management
- Rule Management
-
Task Management
- Application Examples
- Appendixes
- Description
-
FAQs
-
General Issues
- Why Am I Told that a Task Is Running and I Should Try Again Later?
- Why Am I Told that I Don't Have Sufficient Permissions and I Should Check and Try Again?
- Why Am I Told that Cppcheck Cannot Tokenize the Code Correctly?
- Why Am I Told that No Dependency Exists in the Maven Repository?
- Why Am I Seeing Error CC.00070400.500?
- Why Don't I Have Enough Permissions When Clicking a Task Name?
- Why Does a Project with WPF in C# Fail?
- Why Is No Data Displayed After a Task Is Complete?
- Why Does a TypeScript Task Fail with a 404 Error in the Log?
- API Issues
-
General Issues
- Videos
- General Reference
Show all
Copied.
Configuring Quality Gates
Set the threshold based on the quality requirements to check whether the project is ready for production. If the actual check result surpasses the gate threshold, the project is deemed unfit for production.
Quality gate can be set at the tenant, project, and task levels in a descending order of precedence. The navigation paths are as follows:
- Tenant level: Go to the CodeArts Check homepage, and choose Config Center. The Quality Gate details are displayed by default.
- Project level: Go to the project details page, and choose Code > Check > Config Center > Quality Gate.
- Task level: Go to the task details page, and choose Settings > Quality Gate.
This section uses a task-level quality gate as an example to describe how to configure a quality gate.
- Access CodeArts Check through a project.
- Go to the task page. In the task list, click a task name.
- On the task details page, choose Settings > Quality Gate.
- In the Quality Gate area, enable gate items and set thresholds based on quality requirements.
Figure 1 Configuring a gate
- Click Save.
You can click Start Check and view the check results.
If the issues of a gate item exceed the corresponding thresholds for a gate, Failed is displayed in the Task-level Gate Result area of the Overview tab page. Fix code as prompted.
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