JavaScript is not currently enabled, but is required for full CodeSonar manual search and browse functionality.
If you are viewing this file in your hub's Web GUI, enable JavaScript in your browser: you will also need it for GUI functionality.
If you opened this file directly from disk, your browser may be directly suppressing JavaScript functionality: certain browsers perform this suppression on local files (but not files delivered by web servers) for security reasons.
| CodeSonar® 9.0p0 Hot Tips | CONFIDENTIAL | CodeSecure Inc |
This table contains broad mappings between Power of Ten rule numbers and CodeSonar warning classes.
The close mapping from Power of Ten rule numbers to CodeSonar warning classes is shown in "Power of Ten" Checks.
A CSV version of this table is provided in POW10-mapping-broad.csv
| POW10 | C/C++ Warning Classes | ||
|---|---|---|---|
| POW10:1 Restrict to simple control flow constructs. |
|
||
| POW10:2 Give all loops a fixed upper-bound. |
|
||
| POW10:3 Do not use dynamic memory allocation after initialization. |
|
||
| POW10:4 Limit functions to no more than 60 lines of text. |
|
||
| POW10:5 Use minimally two assertions per function on average. |
|
||
| POW10:6 Declare data objects at the smallest possible level of scope. |
|
||
| POW10:7 Check the return value of non-void functions, and check the validity of function parameters. |
|
||
| POW10:8 Limit the use of the preprocessor to file inclusion and simple macros. | |||
| POW10:9 Limit the use of pointers. Use no more than two levels of dereferencing per expression. |
|
||
| POW10:10 Compile with all warnings enabled, and use one or more source code analyzers. |
|