Bu sayfa henüz yerel dilinizde mevcut değildir. Daha fazla dil seçeneği eklemek için yoğun bir şekilde çalışıyoruz. Desteğiniz için teşekkür ederiz.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ CodeArts Check/ User Guide/ Viewing Check Results

Viewing Check Results

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

Prerequisite

You have created and executed a task.

Viewing Check Details

  1. Access CodeArts Check through a project.
  2. Go to the CodeArts Check page and search for the target task. You can view the status of the check task in the Issue column of the code check task list.

    • New: new issues that need to be solved after the task is executed.
    • Unsolved: issues that have not been solved after the task is executed.
    • Solved: issues that have been solved after the task is executed.

  3. Click the task name to view the check details.

    • Number of lines of code.
    • Gate result: The result can be Passed or Failed, and the numbers of critical issues and major issues are displayed.

      You can set the gate threshold by referring to Configuring Quality Gates.

    • Number of issues detected.
    • Number of delayed rollout issues detected by the upgraded check engines.
    • Number of unresolved new issues.
    • Number of resolved new issues.
    • Average cyclomatic complexity.
    • Code duplication rate.
    • Number of non-blank non-comment lines of code.
    • Top 10 rules with the most issues and the numbers of these issues.
    • Pending issues by severity.
    • Issue assignments. If the number of assigned issues does not match the total number of issues, there are some issues that have not been assigned to owners.
    • Historical trends. By default, the figures show trends of issues, cyclomatic complexity, and duplicate rates in the last month.

Viewing Code Issues

You can view code issue details in either of the following ways:

  • Exporting issues to the local PC
    Method 1:
    1. On the task list page, select the tasks for which you want to export issues in batches (max. 20 tasks at a time).
    2. Choose More > Export Task Issues.
    3. In the displayed dialog box, select the items to be exported and click Export.
    4. Click View Downloads to view the export progress.
    5. After the export is complete, click Download to export the issues to the local PC.

    Method 2:

    1. Click the Issues tab.
    2. Choose Apply to Filtered > Export to export issues to the local PC.
  • Online viewing
    1. Click the Issues tab. In the Filters area, set filter criteria to filter issues. The following table lists the filter criteria.

      Filter Criteria

      Description

      Issue Level

      The options are Critical, Major, Minor, and Suggestion.

      Issue Status

      The options are Pending, Resolved, Ignored, and Fixed.

      Latency Issues

      Indicates the number of issues in the official version and in the delayed version.

      Check Time

      Indicates New issues and Inventory issues distinguished based on the detection time.

      NOTE:

      You can set the start time of new issues. Issues found after that time are new.

      File

      Filter issues by source file name.

      Language

      Filter issues by language.

      Rule

      Filter issues by rule so that users can solve the same type of issues at a time.

      User Tag

      Filter issues by user tag of rules.

      Owner

      Filter issues by issue owner.

      NOTE:

      During check, new issues are automatically assigned to the last committer of the faulty code line when you enable Accurate Matching of Issue Owners.

      CWE

      Filter issues by security rule name.

    2. After setting the filter criteria, you can perform the following operations in the right pane.
      • If an issue has been resolved, click Pending and select Resolved. If an issue does not need to be handled, click Pending and select Ignore Issue. To ignore the issue, you need to submit a comment.
      • Click Owner to transfer the issue to another owner.
      • Click Help to view the rule details corresponding to the issue.
      • Click View Context. On the Context page, you can modify the issue status, transfer the owner, and click to modify the code in the repository based on Help.
      • Click Create Ticket to submit the service ticket to the specified owner. This function is available only in Scrum projects.
      • Click Generate Report to generate a report in PDF format.
      • Choose Apply to Filtered > Change Status to modify the status of all filtered issues.
        NOTE:

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

      • Choose Apply to Filtered > Change Owner to transfer all the filtered issues to a specified owner.

Viewing Code Metrics

Code metrics reflect the quality of committed code, helping you detect and fix issues in a timely manner and improving R&D efficiency. Code metrics cover the following two types of issues:

  • Cyclomatic complexity.
    NOTE:

    Code cyclomatic complexity is not supported for code in Shell.

    Click a file name to go to the file details page. Click to modify the code in the code repository.

  • Duplication rate. CodeArts Check identifies duplicate lines, blocks, and rates.

    To solve this problem, perform the following steps:

    1. Click a file name to go to the file details page.
    2. The vertical bars on the left of the file details page identify duplicated code blocks. If you click a vertical bar, the list of files that contain the same code blocks is displayed.

    3. Click a file name to compare the duplicated code blocks of the two files.

    4. Click to modify the code in the code repository.

Viewing Check Logs

Click the Logs tab to view the logs and check parameters.

Figure 1 Logs
Figure 2 Check parameters

Sitemizi ve deneyiminizi iyileştirmek için çerezleri kullanırız. Sitemizde tarama yapmaya devam ederek çerez politikamızı kabul etmiş olursunuz. Daha fazla bilgi edinin

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback