☁️Creating and Executing a CodeArts Check Task

Zeynep Kucur
Huawei Developers
Published in
3 min readJul 1, 2024

What is CodeArts Check?

CodeArts Check is a cloud-based platform designed to analyze and improve code quality. It offers a variety of services, including style checks, quality assessments, and cybersecurity risk evaluations. The platform also provides detailed reports, streamlined bug handling, and many other user-friendly features to help enterprises enhance their code quality efficiently.

Let’s create a CodeArts Check task

First we need to create a project.

Then create a code repository in that project.

There are three repository types.

We will import a repository by providing the Source Repository URL.

Then we name our CodeArts repository.

Creating a Task to Check Code from Repo

After you have created the repository head to the Check page and click on Create Task.

Check page

Select the code repository to be checked and create a Check Task.

Click on Start Check to manually run the code check task directly. You can also set the quality gate and rule sets before running the code check.

Viewing check results

Your code is checked! :) Go to check page and click on the task name to view the check details. Once a check task is completed, the result is shown. By default, the Overview tab appears on the View Task Details page, where you can review the task information.

check details

For an overview, see Viewing Task Overview.
To view and fix code issues, refer to Viewing Code Issues.
For metrics such as cyclomatic complexity and code duplicates, see Fixing Code Cyclomatic Complexity Issues and Fixing Code Duplicates Issues.
To view the check logs, refer to Viewing Check Logs.
For settings information, see the Overview.

Conclusion

By following these steps, you can successfully create and execute a CodeArts Check task, enabling you to maintain high standards of code quality within your projects. With tools to assess style, quality, and security, as well as detailed metrics and logs, CodeArts Check ensures your code meets the necessary standards. Dive into your check results and take full advantage of this powerful platform to optimize your code and enhance your development workflow.

--

--