-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CMakeList & Coverity configuration (#109)
* Update CMakeList to optionally build UT/Coverity; Update coverity configuration * Update version * Add filepath * Fix broken links
- Loading branch information
Showing
6 changed files
with
93 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,40 @@ | ||
// MISRA C-2012 Rules | ||
|
||
{ | ||
version : "2.0", | ||
standard : "c2012", | ||
title: "Coverity MISRA Configuration", | ||
deviations : [ | ||
"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.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.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": "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.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.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 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 3.1", | ||
"reason": "Allow nested comments. Documentation blocks contain comments for example code." | ||
}, | ||
{ | ||
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." | ||
"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." | ||
} | ||
] | ||
} |