You can use existing Code Analysis rules or clone them and customize them to confirm your code meets your code review requirements. you can import and export rules.
Icon | Description | The Code Analysis Rule Builder |
---|---|---|
Create a rule |
Rule IDs are automatically generated sequentially from 7000 to 9000.
Enter the Description and specify the Rule Tip.
| |
Clone the selected rule |
A checked box in the User Defined column will be displayed for the rule you created.
Select the rule to edit. Edit the fields as necessary.
Field | Description |
---|---|
Code Preview | Enter code to use for testing the rule. |
XPath Expression |
Edit the XPath. If this field is blank, then you cannot edit the XPath for the rule. To test the rule, click . |
To restore a rule or all rules, you can select the rule and click the 'Restore Original Rule Value' button, or the double-arrow 'Restore All Original Rule Values' button.
Icon | Description | ||
---|---|---|---|
Import a rule. Navigate to the location of the rule and click Open.
| |||
Export the selected user-defined rule. |
© ALL RIGHTS RESERVED. 利用規約 プライバシー Cookie Preference Center