CLI Command Reference
Task Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Creating a Check Task | hcloud CodeArtsCheck CreateTask | Create a check task but do not execute it. | |
| Deleting a Check Task | hcloud CodeArtsCheck DeleteTask | This interface is used to delete a check task. A task that is being executed cannot be viewed. | |
| Querying the task list | hcloud CodeArtsCheck ShowTaskListByProjectId | Query the task list of the project based on DEVCLOUD_PROJECT_UUID. | |
| Executing a Check Task | hcloud CodeArtsCheck RunTask | Execute the check task. | |
| Stopping a Check Task | hcloud CodeArtsCheck StopTaskById | This interface is used to terminate a check task based on the task ID. | |
| Querying the Task Execution Status | hcloud CodeArtsCheck ShowProgressDetail | Query the task execution status based on the task ID. Task status: 0 indicates that the task is being checked, 1 indicates that the check fails, 2 indicates that the check is successful, and 3 indicates that the task is stopped. The detailed progress information is displayed only when the check is in progress. | |
| Querying Historical Scan Results | hcloud CodeArtsCheck CheckRecord | Provides statistics on the number of issues scanned each time. | |
| Querying the Selected Rule Sets of a Task | hcloud CodeArtsCheck ListTaskRuleset | List of selected rule sets of a query task. | |
| Querying the Selected Rule Sets of a Task | hcloud CodeArtsCheck ShowTasksRulesets | List of selected rule sets of a query task. | |
| Querying the Check Parameters of a Task Rule Set | hcloud CodeArtsCheck CheckParameters | Querying the Check Parameters of a Task Rule Set | |
| Querying the Check Parameters of a Task Rule Set | hcloud CodeArtsCheck CheckRulesetParameters | Querying the Check Parameters of a Task Rule Set | |
| Task Configuration Check Parameters | hcloud CodeArtsCheck ListTaskParameter | Task Configuration Check Parameters | |
| Modifying a Task Rule Set | hcloud CodeArtsCheck UpdateTaskRuleset | Modify a task rule set. | |
| Querying Task Check Failure Logs | hcloud CodeArtsCheck ShowTasklog | This interface is used to query task check failure logs. If execute_id is not transferred, the latest check log is queried. | |
| Obtaining the Directory Tree of a Task | hcloud CodeArtsCheck ShowTaskPathTree | Obtains the directory tree of a task. | |
| Shielding a Directory in Task Configuration | hcloud CodeArtsCheck UpdateIgnorePath | Shielded directory for task configuration. | |
| Querying Advanced Settings of a Task | hcloud CodeArtsCheck ShowTaskSettings | Advanced settings of a query task. | |
| Configuring Advanced Settings for a Task | hcloud CodeArtsCheck UpdateTaskSettings | Configures advanced settings for a task, such as custom image. |
Defect Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Query Defect Summary | hcloud CodeArtsCheck ShowTaskDetail | Query the summary of the defect result based on the check task ID. Including the problem overview, problem status, cyclomatic complexity, and code repetition rate. | |
| Querying the cmertrics Defect Summary | hcloud CodeArtsCheck ShowTaskCmetrics | Query the cmertrics defect summary based on the check task ID. | |
| Querying Defect Details | hcloud CodeArtsCheck ShowTaskDefects | This API is used to query defect result details by check task ID in pagination mode. | |
| Querying Defect Details Statistics | hcloud CodeArtsCheck ShowTaskDefectsStatistic | This interface is used to query defect details based on the check task ID. | |
| Modify Defect Status | hcloud CodeArtsCheck UpdateDefectStatus | Change the status of detected defects to Resolved or Ignored. |
Rule Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Interface for Obtaining the Rule List | hcloud CodeArtsCheck ListRules | This API queries the rule list based on conditions such as the language and problem level. | |
| Creating a User-Defined Rule Set | hcloud CodeArtsCheck CreateRuleset | Rules can be flexibly combined as required. | |
| Querying the Rule Set List | hcloud CodeArtsCheck ListRulesets | This API is used to query the rule set list based on conditions such as the project ID and language. | |
| Viewing the Rule List of a Rule Set | hcloud CodeArtsCheck ListTemplateRules | This API is used to query the rule list based on conditions such as the project ID and rule set ID. | |
| Deleting a User-Defined Rule Set | hcloud CodeArtsCheck DeleteRuleset | This interface is used to delete a user-defined rule set. The rule set in use or the default rule set cannot be deleted. | |
| Set the default rule set configuration for the language corresponding to each project. | hcloud CodeArtsCheck SetDefaulTemplate | Set the default rule set configuration for the language corresponding to each project. |
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot