Code review overview

Code Review for C

Automated source code review is a method of analyzing code against a set of predefined rules to ensure that the source adheres to guidelines and standards that are part of any efficient quality control strategy. HCL OneTest Embedded provides an automated code review tool, which reports on adherence to guidelines for your C source code.

Among other guidelines, the code review tool implements rules from the MISRA-C:2004 standard, which are Guidelines for the use of the C language in critical systems.

Code Review supports C89 and C99.

When an application or test node is built, the source code is analyzed by the code review tool. The tool checks the source file against the predefined rules and produces a .crc report file that can be viewed and controlled from the HCL OneTest Embedded graphical user interface (GUI).

Code review can be performed each time a node is built, but can also be calculated without executing the application.

The default code review report is generated in an HTML format. You can customize the report template that is available in HCL OneTest Embedded.

To learn about See
The list of rules used by HCL OneTest Embedded code review Code review MISRA 2004 rules
Code review MISRA 2012 rules
Setting up the rules to used for reviewing code Configuring code review rules
Performing a code review Running a code review
Running all of the MISRA rules from an application node Running complete verification of MISRA rules from an application node
For advanced users, executing the code review from the CLI Executing the code review from a script
Viewing and understanding the results of a code review Viewing code review results
Customizing the code review report Customizing the code review report
Customizing the code review report Customizing the code review report
Interpreting code review reports Understanding code review reports
Locally disabling a rule Code review deviation