Executing a Task Securely
Scenario
The enhanced package offers a robust security check feature that thoroughly detects code risks and vulnerabilities. It also covers unique risk scenarios not available in the edition packages, for example, value errors, encryption issues, and data verification issues. Moreover, it strengthens vulnerability analyses for detection items (such as cross-function check, cross-file check, taint analysis, semantic analysis).
Resource and Cost Planning
Purchase the CodeArts Check enhanced package by referring to Purchasing a Value-Added Feature. For details about the price, see Price Calculator.
Procedure
Step |
Description |
---|---|
Create a project. |
|
Create a code repository. |
|
Configure a rule set with the security enhanced package to a task. |
|
View the check results to check whether the rule takes effect. |
Creating a Project
- Log in to the Huawei Cloud console.
- Click
in the upper left corner and choose from the service list.
- Click Go to CodeArts Check to go to the CodeArts Check homepage.
- In the navigation pane, choose Homepage. Click Create > Create Project, and select the Scrum template.
- Enter the project name, for example, check-bestpractice. Retain the other parameters as default.
- Click OK to access the project.
Creating a CodeArts Repo Repository
- In the navigation pane, choose to go to the CodeArts Repo page of the check-bestpractice project.
- Click Create Repository.
- On the displayed page, select Template and click Next.
- On the template selection page, select the Java Maven Demo template and click Next.
- Set Repository Name to Repo01, select Automatically create check task, and retain the other parameters as default. Click OK.
Configuring a Rule Set to Execute a Task
- The task is displayed on the task list page, because you have selected Automatically create Check task when creating a cloud repository in CodeArts Repo. On the Tasks page, click the task name.
- Click Settings.
- Click Rule Sets and click
in the upper right corner of Huawei Java Enhanced Coding Standard Rule Set.
- Click Configuration, set Compiler Tools Options to
, and set Build Tool to maven. Retain the default values for other parameters and click Confirm.
Figure 1 Configuration - Click Start Check in the upper right corner.
Viewing Check Results
If issues checked by Huawei Java Enhanced Programming Rule Set are displayed, this rule set is used for the task.
Related Operations
For more rule set configurations, see Configuring a Rule Set.
Feedback
Was this page helpful?
Provide feedbackThank 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