Code Review for C
The code review tool uses a set of predefined rules that you can either disable or set the severity level to Warning or Error.
By default all rules are enabled and produce either an error or a warning in the code review report. You can save multiple customized rule policies.
The default rule policy is located in the <installation directory>/plugins/Common/lib/confrule.xml file.
Note All new projects use the default rule configuration file. When you make any changes to the policy, a new policy file is automatically saved in the project folder.
To disable or set the severity level of code review rules:
Select a node in
the Project Explorer pane and
click the Settings button.
In the Configuration Settings list, select Code Review.
Select the Rule configuration
setting and click Edit . This opens the Rule Configuration
window.
On the left, select the rule that you want to configure. Rules are grouped into categories. When a rule is selected, its description is displayed on the right.
On the right, select the severity level:
Disabled: The selected rule is ignored and is not displayed in the code review report.
Warning: When any non-compliances are found, a warning is displayed in the code review report.
Error: When any non-compliances are found, an error is displayed in the code review report.
Select Show only the first occurrence to only show the first occurrence of a non conformance in a file.
Select OK to save the current configuration or Save As to create a new rule configuration file.
Related Topics
Code review overview | Code review settings | Code review rules | Understanding code review reports