Using SoftBench CodeAdvisor

SoftBench CodeAdvisor continues to increase the number of rules that it checks. Consequently, rules are grouped into categories which allows you to choose which rule groups you want to check. The rules are divided into the following groups:

Definite Defects (default)

Probable Defects (default)

Possible Defects

Maintenance/Confusing Code

Critical Portability

Non-critical Portability

Style

Future Defects/Land Mines

You or your local programming staff and site administrators can extend SoftBench CodeAdvisor to add even more rules and rule groups. User-defined rules allow you to check for specific problems that concern your organization. You can also change the contents of rule groups, including breaking out platform specific portability dependencies. Refer to the SoftBench SDK: CodeAdvisor and Static Programmer's Guide for details on creating rule groups.

SoftBench CodeAdvisor cannot detect every logic error in your code. However, by running SoftBench CodeAdvisor on your code, you can be confident that a variety of subtle problems have been detected.

Chapter 6

147