35 lines
1.0 KiB
Plaintext
35 lines
1.0 KiB
Plaintext
// MISRA C-2012 Rules
|
|
|
|
{
|
|
version : "2.0",
|
|
standard : "c2012",
|
|
title: "Coverity MISRA Configuration",
|
|
deviations : [
|
|
{
|
|
deviation: "Directive 4.9",
|
|
category: "Advisory",
|
|
reason: "Allow inclusion of function like macros."
|
|
},
|
|
{
|
|
deviation: "Rule 3.1",
|
|
category: "Required",
|
|
reason: "Allow nested comments. Documentation blocks contain comments for example code."
|
|
},
|
|
{
|
|
deviation: "Rule 12.3",
|
|
category: "Advisory",
|
|
reason: "Allow use of assert(), expansion of which uses comma operator."
|
|
},
|
|
{
|
|
deviation: "Rule 15.6",
|
|
category: "Required",
|
|
reason: "Allow use of assert(), expansion of which contains non-compound if statements."
|
|
},
|
|
{
|
|
deviation: "Rule 20.12",
|
|
category: "Required",
|
|
reason: "Allow use of assert(), which uses a parameter in both expanded and raw forms."
|
|
},
|
|
]
|
|
}
|