-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathmisra.config
48 lines (48 loc) · 1.97 KB
/
misra.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
"version" : "2.0",
"standard" : "c2012",
"title": "Coverity MISRA Configuration",
"deviations" : [
// Disable the following rules.
{
"deviation": "Directive 4.5",
"reason": "Allow names that MISRA considers ambiguous."
},
{
"deviation": "Directive 4.8",
"reason": "Allow inclusion of unused types. Header files for coreMQTT, which are needed by all files, define types that are not used by the agent."
},
{
"deviation": "Directive 4.9",
"reason": "Allow inclusion of function like macros. Asserts and logging are done using function like macros."
},
{
"deviation": "Rule 2.3",
"reason": "Allow unused types. coreMQTT Library headers define types intended for the application's use, but are not used by the agent files."
},
{
"deviation": "Rule 2.4",
"reason": "Allow unused tags. Some compilers warn if types are not tagged."
},
{
"deviation": "Rule 2.5",
"reason": "Allow unused macros. coreMQTT Library headers define macros intended for the application's use, but are not used by the agent."
},
{
"deviation": "Rule 3.1",
"reason": "Allow nested comments. Documentation blocks contain comments for example code."
},
{
"deviation": "Rule 8.7",
"reason": "API functions are not used by the library outside of the files they are defined; however, they must be externally visible in order to be used by an application."
},
{
"deviation": "Rule 8.13",
"reason": "Allow to not to use const-qualified type for callback function."
},
{
"deviation": "Rule 11.5",
"reason": "Allow casts from void *. Contexts are passed as void * and must be cast to the correct data type before use."
}
]
}