@@ -15,8 +15,6 @@ useStlAlgorithm
1515premium-cert-dcl51-cpp
1616
1717# TODO: Is there unsafe allocations, in case of exceptions) in cppcheck
18- premium-cert-err58-cpp
19-
2018# we have global objects
2119premium-cert-err58-cpp
2220
@@ -42,6 +40,9 @@ premium-misra-cpp-2008-0-1-12
4240# we sometimes don't care about return value from functions
4341premium-misra-cpp-2008-0-1-7
4442
43+ # c++11
44+ premium-misra-cpp-2008-1-0-1
45+
4546# TODO: can we prevent commented out code?
4647premium-misra-cpp-2008-2-7-2
4748premium-misra-cpp-2008-2-7-3
@@ -52,6 +53,9 @@ premium-misra-cpp-2008-2-10-1
5253# objects of a class often has the lowercase name of the class.
5354premium-misra-cpp-2008-2-10-4
5455
56+ # no suffix on numeric literals
57+ premium-misra-cpp-2008-2-13-3
58+
5559# flag |= ..
5660premium-misra-cpp-2008-4-5-1
5761
@@ -76,6 +80,9 @@ premium-misra-cpp-2008-5-0-11
7680# conversion of char-to-int is intentional sometimes
7781premium-misra-cpp-2008-5-0-12
7882
83+ # pointer-to-bool conversion in condition
84+ premium-misra-cpp-2008-5-0-13
85+
7986# pointer-to-bool conversion is common
8087premium-misra-cpp-2008-5-0-14
8188
@@ -106,9 +113,30 @@ premium-misra-cpp-2008-5-2-12
106113# we write !pointer by intention
107114premium-misra-cpp-2008-5-3-1
108115
116+ # side effects in conditional code is intentional
117+ premium-misra-cpp-2008-5-14-1
118+
119+ # intentional use of comma operator in variable declarations
120+ premium-misra-cpp-2008-5-18-1
121+
122+ # nested assignments are intentional
123+ premium-misra-cpp-2008-6-2-1
124+
109125# for (;;)
110126premium-misra-cpp-2008-6-2-3
111127
128+ # we don't always use braces for single statement loop/switch bodies
129+ premium-misra-cpp-2008-6-3-1
130+
131+ # we don't always use braces for single statement if/else
132+ premium-misra-cpp-2008-6-4-1
133+
134+ # we do not require a final else
135+ premium-misra-cpp-2008-6-4-2
136+
137+ # return in case
138+ premium-misra-cpp-2008-6-4-5
139+
112140# it's not a bug to not put default at the end of a switch body
113141premium-misra-cpp-2008-6-4-6
114142
@@ -143,15 +171,24 @@ premium-misra-cpp-2008-8-5-3
143171# TODO Fix these
144172premium-misra-cpp-2008-9-3-1
145173
174+ # returning non-const pointer/reference from method that is non-const
175+ premium-misra-cpp-2008-9-3-2
176+
146177# we use unions by intention sometimes
147178premium-misra-cpp-2008-9-5-1
148179
149180# overridden methods is safe
150181premium-misra-cpp-2008-10-3-1
151182
183+ # use override/final
184+ premium-misra-cpp-2008-10-3-2
185+
152186# some classes have public members by intention
153187premium-misra-cpp-2008-11-0-1
154188
189+ # intentional: clang-tidy warns for redundant base class initializations
190+ premium-misra-cpp-2008-12-1-2
191+
155192# rule should not apply to deleted copy assignment operator
156193premium-misra-cpp-2008-12-8-2
157194
@@ -161,8 +198,13 @@ premium-misra-cpp-2008-14-6-2
161198# function specializations: TODO check if we should refactor
162199premium-misra-cpp-2008-14-8-2
163200
201+ # we throw a pointer by intention
202+ premium-misra-cpp-2008-15-0-2
203+ premium-misra-cpp-2008-15-3-5
204+
164205# we use preprocessor when it makes sense
165206premium-misra-cpp-2008-16-0-1
207+ premium-misra-cpp-2008-16-0-7
166208premium-misra-cpp-2008-16-2-1
167209premium-misra-cpp-2008-16-2-2
168210premium-misra-cpp-2008-16-3-2
0 commit comments