Updated on 2024-10-10 GMT+08:00

Configuring Check Modes

You can set check modes and checked catalogs for efficiency.

Neither C# nor the secbrella engine supports merge requests.

Configuring Check Modes

  1. Access CodeArts Check through a project.
  2. Go to the task page. In the task list, click a task name.
  3. On the task details page, choose Settings > Check Modes.
  4. In the MR Check area, select Changed Files or Full Code. By default, Changed Files is selected.

  5. Click Save.

Configuring Checked Catalogs

You can specify certain directories to be checked in the code repository.

  • By default, all code in the code repository is checked.
  • If you specify one or more directories, the files in the specified directories are checked.

You can specify multiple directories by separating them with commas (,). For example:

  • To check the dir1 and dir2 directories, enter dir1,dir2.
  • To check dir3 in the dir1 directory, enter dir1/dir3.
  • You need to specify directories instead of file names. By default, all code in the code repository is checked.
  • The specified directories cannot start with a period (.).
  • By default, all directories are checked if you leave the text box empty. If you specified directories, all files within them are checked except for those that have been set to be ignored.
  • This function takes effect only for the files that do not need to be compiled. If file B is generated after the compilation of file A, issues in file B are not reported.

Setting an Ignored File List

You can configure the file scope by task.

  • If you do not specify a file path, all code of the selected repository branch is checked.
  • If you specify a file path, the files in it are ignored during a check.

In the Ignored File List area, select the file paths that do not need to be checked. Run the code check task. The files in the selected paths will not be checked.

This function takes effect for the files that (do not) need to be compiled.

  • Files that do not need to be compiled: If these files are set to be ignored, they are not checked.
  • Files that need to be compiled: For example, file A and file B depend on each other. If file A is set to be ignored, file A is not checked, but file A is still involved in the compilation process before the check.