Updated on 2022-09-29 GMT+08:00

Viewing Code Issues

After the check task is complete, you can view code issues and perform the following operations.

  • Filter code issues based on different conditions.
  • View fix suggestions for each issue.
  • Assign issue owners.
  • Perform batch operations on code issues.

Viewing Code Issues

  1. Access the check task details page.
  2. Click the Issues tab.

    Filters on the left allow you to filter issues by level, status, and finding time.

    Table 1 Operation description for code issues

    Operation

    Description

    Issue Level

    Options include Critical, Major, Minor, and Suggestion.

    Issue Status

    Options include Pending and Ignored.

    Type

    You can filter new and all issues.

    Rule

    Statistics are collected based on matched rules so that users can fix the same type of issues at a time.

    File

    Statistics are collected by source file.

    Language

    Statistics are collected by programming language.

    Owner

    Assign issue owners.

    Apply to All

    Click Apply to All in the upper right corner to mask all code issues or transfer all issue owners.

    NOTE:

    If the number of code issues is 0, this parameter is not displayed.

    Export All

    Click Export All in the upper right corner of the page to export all code issues.

    More

    Click More in the upper right corner of the page and choose Export Masked to export all masked MR issues.

  3. Click Help to view overview information, including the issue description, compliant examples, noncompliant examples, and fix suggestions.
  4. Fix issues following suggestions.
  5. If an issue does not need to be fixed, click to ignore the issue.

Assigning Issue Owners

During check, new issues are automatically assigned to the last committer of the faulty code line.

If the code committer is not in the code repository user list, the issues will not be allocated.

  1. Access the check task details page.
  2. Click the Issues tab. Use Issue Level and Issue Status filters as required.

  3. Click in the issue details to set the issue owner.

Performing Batch Operations for Code Issues

Perform batch operations on code issues.

  1. Access the check task details page.
  2. Click the Issues tab.
  3. In the filter on the left of the page, filter code issues to be exported, for example byIssue Level or Issue Status.
  4. (Optional) Configure specified code issues in batches.

    Select the target issue. Batch operations and Export are displayed in the lower part of the page.

    • Batch operations: You can apply for blocking all code issues or transferring all issue owners.
    • Export: You can export code issues.

Viewing Check Logs

  1. Access the check task details page.
  2. Click the Logs tab.

    Log details include execution history, step logs, and check parameters.

  3. Click in the upper left corner to view logs in all states.