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.
- What's New
- Function Overview
- Service Overview
- Getting Started
-
User Guide
- Working with CodeArts Check
- Purchasing CodeArts Check
- Configuring Project-level Role Permissions
- Creating a Task
- Configuring a Task
- Executing a Task
- Viewing Check Results
- Querying Audit Logs
- Reference
- Best Practices
-
API Reference
- Before You Start
- API Overview
- Calling APIs
-
APIs
-
Task Management
- Creating a Check Task
- Deleting a Check Task
- Querying Tasks
- Executing a Check Task
- Stopping a Check Task
- Querying the Status of a Task
- Querying Historical Check Results
- Querying Selected Rule Sets of a Task (Version 2)
- Querying Selected Rule Sets of a Task (Version 3)
- Querying the Check Parameters of a Rule Set (Version 2)
- Querying the Check Parameters of a Rule Set (Version 3)
- Configuring the Check Parameters of a Task
- Modifying the Rule Set in a Task
- Querying Check Failure Logs
- Obtaining the Directory Tree of a Task
- Ignoring Directories of a Task
- Querying Advanced Configurations of a Task
- Configuring Advanced Configurations for a Task
- Issue Management
- Rule Management
-
Task Management
- Application Examples
- Appendixes
- Description
-
FAQs
-
General Issues
- Why Am I Told that a Task Is Running and I Should Try Again Later?
- Why Am I Told that I Don't Have Sufficient Permissions and I Should Check and Try Again?
- Why Am I Told that Cppcheck Cannot Tokenize the Code Correctly?
- Why Am I Told that No Dependency Exists in the Maven Repository?
- Why Am I Seeing Error CC.00070400.500?
- Why Don't I Have Enough Permissions When Clicking a Task Name?
- Why Does a Project with WPF in C# Fail?
- Why Is No Data Displayed After a Task Is Complete?
- Why Does a TypeScript Task Fail with a 404 Error in the Log?
- API Issues
-
General Issues
- Videos
- General Reference
Copied.
Configuring a Custom Rule Set
CodeArts Check supports custom rule sets. Each rule set must contain at least one rule.
A rule set can be configured with only one language.
Purchase the code security check enhancement package as required before using CodeArts Check. This package identifies code security risks and vulnerabilities more comprehensively for Java, C++, Go, and Python.
Video Tutorial
This video demonstrates how to use a custom rule set to check code from CodeArts Repo.
Customizing a Rule Set
- Access CodeArts Check through a project.
- Click the Rule Sets tab.
- Click Create Rule Set. In the displayed dialog box, enter a rule set name and description, and select a language.
You can also copy an existing rule set by selecting it from the Replicated in drop-down list.
- Click OK.
- Select rule names, set Issue Level and click Save in the upper right corner.
Customize rules if needed.
- Click the rule set name to go to the details page.
- Alternatively, on the details page, click Export to export the enabled rules in the rule set to the local PC and view the rule details.
- On the details page, click Modify Basic Info to modify the rule set name or description.
NOTE:
- The Language cannot be modified.
- Preset rule sets cannot be modified.
- Custom rule sets can be deleted only by the one who created them.
- Click
in the row where the rule set is located and choose Delete Set.
NOTE:
- Custom rule sets can be deleted only by the one who created them.
- System rule sets and custom rule sets in use cannot be deleted.
- To delete a rule set being used by a code check task, you can either delete the task or assign another rule set to the task.
Using a Custom Rule Set
- Go to the task details page, and choose Settings > Rule Sets.
- If any changes are made to the code repository after you create a code check task, click
in the Languages Included row to re-obtain the target language, and enable the switch of language.
- Click
to select the created custom rule set.
Customizing a Rule
- Custom rules: max. 10.
- Lines of code scanned by a rule set with only custom rules: max. 100,000. This applies when the rule set contains only custom rules.
- Duration per code check task with 100,000 LOC scanned by a rule set with only custom rules: max. 1.5 hours. This applies when the rule set contains only custom rules.
To scan more code or customize more rules, contact technical support.
- Click the Rules tab.
- Click Create Rule. Set parameters by referring to Table 1.
Table 1 Rule parameters Parameter
Description
Mandatory
Rule Name
Custom rule name. It can be customized.
Enter 1 to 128 characters: letters, digits, underscores (_), hyphens (-), and periods (.).
Yes
Tool Rule Name
Rule source code file (by default).
Yes
Tool
Check tool used by a custom rule. Currently, only SecBrella is supported.
Yes
Language
Language checked by a custom rule. Currently, only Java is supported.
Yes
Source Code
Rule source code file.
Create a .kirin file, create a domain-specific language (DSL) for rules, run the local plug-in to generate a SecH_Rule name.json file in the OutputReport directory, and upload the .json file.
Yes
Severity
Severity of a code issue detected by a rule. The value can be Critical, Major, Minor, or Suggestion.
Yes
Tag
Rule tag for different scenarios.
Use commas (,) to separate multiple tags.
No
Description
Rule description. The content can contain code in Markdown. Max. 10,000 characters.
Yes
Compliant Example
Compliant code example. The content contains code in Markdown. Max. 10,000 characters.
No
Noncompliant Example
Noncompliant code example. The content contains code in Markdown. Max. 10,000 characters.
No
Fix Suggestions
Issue fixing suggestions. The content can contain code in Markdown. Max. 10,000 characters.
No
- Click Create Rule.
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