Help Center/ CodeArts Check/ Best Practices/ Executing a Task Securely
Updated on 2025-08-01 GMT+08:00

Executing a Task Securely

Scenario

The enhanced package offers a robust security check feature that thoroughly detects code risks and vulnerabilities. It also covers unique risk scenarios not available in the edition packages, for example, value errors, encryption issues, and data verification issues. Moreover, it strengthens vulnerability analyses for detection items (such as cross-function check, cross-file check, taint analysis, semantic analysis).

Resource and Cost Planning

Purchase the CodeArts Check enhanced package by referring to Purchasing a Value-Added Feature. For details about the price, see Price Calculator.

Procedure

Table 1 Procedure

Step

Description

Creating a Project

Create a project.

Creating a CodeArts Repo Repository

Create a code repository.

Configuring a Rule Set to Execute a Task

Configure a rule set with the security enhanced package to a task.

Viewing Check Results

View the check results to check whether the rule takes effect.

Creating a Project

  1. Log in to the Huawei Cloud console.
  2. Click in the upper left corner and choose Developer Services > CodeArts Check from the service list.
  3. Click Go to CodeArts Check to go to the CodeArts Check homepage.
  4. In the navigation pane, choose Homepage. Click Create > Create Project, and select the Scrum template.
  5. Enter the project name, for example, check-bestpractice. Retain the other parameters as default.
  6. Click OK to access the project.

Creating a CodeArts Repo Repository

  1. In the navigation pane, choose Code > Repo to go to the CodeArts Repo page of the check-bestpractice project.
  2. Click Create Repository.
  3. On the displayed page, select Template and click Next.
  4. On the template selection page, select the Java Maven Demo template and click Next.
  5. Set Repository Name to Repo01, select Automatically create check task, and retain the other parameters as default. Click OK.

Configuring a Rule Set to Execute a Task

  1. The task is displayed on the task list page, because you have selected Automatically create Check task when creating a cloud repository in CodeArts Repo. On the Tasks page, click the task name.
  2. Click Settings.
  3. Click Rule Sets and click in the upper right corner of Huawei Java Enhanced Coding Standard Rule Set.
  4. Click Configuration, set Compiler Tools Options to , and set Build Tool to maven. Retain the default values for other parameters and click Confirm.

    Figure 1 Configuration

  5. Click Start Check in the upper right corner.

Viewing Check Results

If issues checked by Huawei Java Enhanced Programming Rule Set are displayed, this rule set is used for the task.

Related Operations

For more rule set configurations, see Configuring a Rule Set.