11
2- #FIXME False positives
3- premium-misra-cpp-2008-4-5-1
2+ # False positives
43premium-misra-cpp-2008-5-17-1
5- premium-misra-cpp-2008-12-1-2
6- premium-misra-cpp-2008-3-3-1
7- premium-misra-cpp-2008-12-8-2
8- premium-cert-exp55-cpp
94premium-misra-cpp-2008-5-0-6
10-
11- # TODO
12- premium-misra-cpp-2008-8-4-4
13- premium-misra-cpp-2008-18-0-2
14- premium-misra-cpp-2008-9-3-1
15- premium-cert-err60-cpp
16- premium-misra-cpp-2008-2-10-4
17- premium-misra-cpp-2008-4-5-2
185premium-misra-cpp-2008-7-2-1
6+ premium-misra-cpp-2008-2-10-4
197premium-misra-cpp-2008-3-3-2
20- premium-misra-cpp-2008-16-2-3
21- premium-cert-err56-cpp
22- premium-misra-cpp-2008-14-5-2
23- premium-misra-cpp-2008-5-0-12
24- premium-cert-err61-cpp
8+ premium-misra-cpp-2008-8-4-4
259
2610# open source warnings are handled by the selfcheck.yml
2711noExplicitConstructor
@@ -32,12 +16,24 @@ useStlAlgorithm
3216# we need to declare reserved identifier _CRTDBG_MAP_ALLOC
3317premium-cert-dcl51-cpp
3418
19+ # TODO: Is there unsafe allocations, in case of exceptions) in cppcheck
20+ premium-cert-err58-cpp
21+
3522# we have global objects
3623premium-cert-err58-cpp
3724
25+ # TODO: Exception objects must be nothrow copy constructible.
26+ premium-cert-err60-cpp
27+
28+ # TODO should we throw Token?
29+ premium-cert-err61-cpp
30+
3831# TODO: Detect errors when converting a string to a number. The library function 'atoi()' shall not be used.
3932premium-cert-err62-cpp
4033
34+ # TODO: Can we reduce some const_cast?
35+ premium-cert-exp55-cpp
36+
4137# sometimes a void function does not have side effects
4238premium-misra-cpp-2008-0-1-8
4339
@@ -58,6 +54,9 @@ premium-misra-cpp-2008-2-10-1
5854# flag |= ..
5955premium-misra-cpp-2008-4-5-1
6056
57+ # Token/Variable flags are enum constants and we use those in bitwise operations by intention.
58+ premium-misra-cpp-2008-4-5-2
59+
6160# intentional addition of char to string: const std::string end(':' + cfg + ':' + Path::simplifyPath(sourcefile));
6261premium-misra-cpp-2008-4-5-3
6362
@@ -73,6 +72,9 @@ premium-misra-cpp-2008-5-0-5
7372# intentional addition of char literal: c = 'a' + (temp - 10);
7473premium-misra-cpp-2008-5-0-11
7574
75+ # conversion of char-to-int is intentional sometimes
76+ premium-misra-cpp-2008-5-0-12
77+
7678# pointer-to-bool conversion is common
7779premium-misra-cpp-2008-5-0-14
7880
@@ -134,6 +136,9 @@ premium-misra-cpp-2008-8-0-1
134136# cppcheck does not care about this enumerator rule
135137premium-misra-cpp-2008-8-5-3
136138
139+ # TODO Fix these
140+ premium-misra-cpp-2008-9-3-1
141+
137142# we use unions by intention sometimes
138143premium-misra-cpp-2008-9-5-1
139144
@@ -143,6 +148,9 @@ premium-misra-cpp-2008-10-3-1
143148# some classes have public members by intention
144149premium-misra-cpp-2008-11-0-1
145150
151+ # rule should not apply to deleted copy assignment operator
152+ premium-misra-cpp-2008-12-8-2
153+
146154# TODO: this can be fixed by refactoring the code.
147155premium-misra-cpp-2008-14-6-2
148156
@@ -155,6 +163,9 @@ premium-misra-cpp-2008-16-2-1
155163premium-misra-cpp-2008-16-2-2
156164premium-misra-cpp-2008-16-3-2
157165
166+ # TODO do we need to catch string conversion errors (using atoi)?
167+ premium-misra-cpp-2008-18-0-2
168+
158169# what standard alternative is there for std::getenv
159170premium-misra-cpp-2008-18-0-3
160171
0 commit comments