You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update CMakeList to optionally build UT/Coverity; Update coverity configuration (#276)
Update Coverity configuration to meet the latest coverity standard.
Updated CMakelist to only build Coverity if required instead of building
the CMock based unit tests as well.
<!--- Title -->
Description
-----------
<!--- Describe your changes in detail. -->
Test Steps
-----------
<!-- Describe the steps to reproduce. -->
Checklist:
----------
<!--- Go over all the following points, and put an `x` in all the boxes
that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
- [x] I have tested my changes. No regression in existing tests.
- [x] I have modified and/or added unit-tests to cover the code changes
in this Pull Request.
Related Issue
-----------
<!-- If any, please provide issue ID. -->
By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
---------
Co-authored-by: Soren Ptak <[email protected]>
# Check if the CMock source directory exists, and if not present, clone the submodule
62
-
# if BUILD_CLONE_SUBMODULES configuration is enabled.
63
-
if( NOTEXISTS${CMOCK_DIR}/src )
64
-
# Attempt to clone CMock.
65
-
if( ${BUILD_CLONE_SUBMODULES} )
66
-
clone_cmock()
67
-
else()
68
-
message( FATAL_ERROR "The required submodule CMock does not exist. Either clone it manually, or set BUILD_CLONE_SUBMODULES to 1 to automatically clone it during build." )
63
+
# ==================================== Test Configuration ========================================
reason: "Allow inclusion of unused types. Header files for a specific port, which are needed by all files, may define types that are not used by a specific file."
12
-
},
2
+
"version" : "2.0",
3
+
"standard" : "c2012",
4
+
"title": "Coverity MISRA Configuration",
5
+
"deviations" : [
13
6
{
14
-
deviation: "Directive 4.9",
15
-
reason: "Allow inclusion of function like macros. Logging is done using function like macros."
7
+
"deviation": "Directive 4.8",
8
+
"reason": "Allow inclusion of unused types. Header files for a specific port, which are needed by all files, may define types that are not used by a specific file."
16
9
},
17
10
{
18
-
deviation: "Rule 2.3",
19
-
reason: "Allow unused types. Library headers may define types intended for the application's use, but not used within the library files."
11
+
"deviation": "Directive 4.9",
12
+
"reason": "Allow inclusion of function like macros. Logging is done using function like macros."
20
13
},
21
14
{
22
-
deviation: "Rule 2.4",
23
-
reason: "Allow unused tags. Some compilers warn if types are not tagged."
15
+
"deviation": "Rule 2.3",
16
+
"reason": "Allow unused types. Library headers may define types intended for the application's use, but not used within the library files."
24
17
},
25
18
{
26
-
deviation: "Rule 2.5",
27
-
reason: "Allow unused macros. Library headers may define macros intended for the application's use, but not used by a specific file."
19
+
"deviation": "Rule 2.4",
20
+
"reason": "Allow unused tags. Some compilers warn if types are not tagged."
28
21
},
29
22
{
30
-
deviation: "Rule 3.1",
31
-
reason: "Allow nested comments. Documentation blocks contain comments for example code."
23
+
"deviation": "Rule 2.5",
24
+
"reason": "Allow unused macros. Library headers may define macros intended for the application's use, but not used by a specific file."
32
25
},
33
26
{
34
-
deviation: "Rule 8.7",
35
-
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."
27
+
"deviation": "Rule 3.1",
28
+
"reason": "Allow nested comments. Documentation blocks contain comments for example code."
36
29
},
37
30
{
38
-
deviation: "Rule 11.5",
39
-
reason: "Allow casts from `void *`. The payload buffers are stored as `void *` and are cast to various types for use in functions."
31
+
"deviation": "Rule 8.7",
32
+
"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."
40
33
},
34
+
{
35
+
"deviation": "Rule 11.5",
36
+
"reason": "Allow casts from `void *`. The payload buffers are stored as `void *` and are cast to various types for use in functions."
0 commit comments