34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
// MISRA C-2012 Rules
|
|
{
|
|
version : "2.0",
|
|
standard : "c2012",
|
|
title: "Coverity MISRA Configuration",
|
|
deviations : [
|
|
// Disable the following rules.
|
|
{
|
|
deviation: "Directive 4.9",
|
|
reason: "Allow inclusion of function like macros. Asserts and logging use function like macros."
|
|
},
|
|
{
|
|
deviation: "Rule 2.4",
|
|
reason: "Allow unused tags. Some compilers warn if types are not tagged."
|
|
},
|
|
{
|
|
deviation: "Rule 2.5",
|
|
reason: "Allow unused macros."
|
|
},
|
|
{
|
|
deviation: "Rule 3.1",
|
|
reason: "Allow nested comments. C++ style `//` comments are used in example code within Doxygen documentation blocks."
|
|
},
|
|
{
|
|
deviation: "Rule 8.7",
|
|
reason: "API functions are not used by the library outside of the files they are defined in; however, they must be externally visible in order to be used by an application."
|
|
},
|
|
{
|
|
deviation: "Rule 11.5",
|
|
reason: "Allow casts from void *. Functions with void * parameters are used while sorting."
|
|
},
|
|
]
|
|
}
|