Updated on 2024-04-22 GMT+08:00

Preparing

Before creating a code check task, perform the following operations:

Accessing the CodeArts Check Page

You can access CodeArts Check from a project or the homepage.

  • From a project
    1. On the CodeArts homepage, click a target project name. The project details page is displayed.
    2. Choose Code > Check.

      The menu positions in a project are determined by the Theme&Layout in Preferences. Here the default Infinite and Classics settings are used as an example. To modify the appearance, click the username in the upper right corner and choose Appearance Settings.

  • From the homepage

    On the CodeArts homepage, choose Services > Check.

Creating a Project

Create a project in CodeArts Req. For details, see Creating a Project.

Skip this step if a project has been created.

Creating a Code Repository

Create a code repository in CodeArts Repo.

Skip this step if a code repository has been created.

Creating a Service Endpoint

Create a service endpoint first if you select Git code source when creating a code check task. Skip this step if a service endpoint has been created.

  1. Access a project, choose Settings > General > Service Endpoints.
  2. Click Create Endpoint and choose Git repository from the drop-down list.
  3. In the Create Service Endpoint dialog box displayed, configure parameters.
    Table 1 Parameters

    Parameter

    Description

    Service Endpoint Name

    Name of the service endpoint.

    Git Repository URL

    Web URL of a Git repository (HTTPS address).

    Username

    Username used for logging in to the Git repository.

    Password or Access Token

    Currently, only the access token is supported.

  4. Click OK.