@@ -15,8 +15,6 @@ useStlAlgorithm
15
15
premium-cert-dcl51-cpp
16
16
17
17
# TODO: Is there unsafe allocations, in case of exceptions) in cppcheck
18
- premium-cert-err58-cpp
19
-
20
18
# we have global objects
21
19
premium-cert-err58-cpp
22
20
@@ -42,6 +40,9 @@ premium-misra-cpp-2008-0-1-12
42
40
# we sometimes don't care about return value from functions
43
41
premium-misra-cpp-2008-0-1-7
44
42
43
+ # c++11
44
+ premium-misra-cpp-2008-1-0-1
45
+
45
46
# TODO: can we prevent commented out code?
46
47
premium-misra-cpp-2008-2-7-2
47
48
premium-misra-cpp-2008-2-7-3
@@ -52,6 +53,9 @@ premium-misra-cpp-2008-2-10-1
52
53
# objects of a class often has the lowercase name of the class.
53
54
premium-misra-cpp-2008-2-10-4
54
55
56
+ # no suffix on numeric literals
57
+ premium-misra-cpp-2008-2-13-3
58
+
55
59
# flag |= ..
56
60
premium-misra-cpp-2008-4-5-1
57
61
@@ -76,6 +80,9 @@ premium-misra-cpp-2008-5-0-11
76
80
# conversion of char-to-int is intentional sometimes
77
81
premium-misra-cpp-2008-5-0-12
78
82
83
+ # pointer-to-bool conversion in condition
84
+ premium-misra-cpp-2008-5-0-13
85
+
79
86
# pointer-to-bool conversion is common
80
87
premium-misra-cpp-2008-5-0-14
81
88
@@ -106,9 +113,30 @@ premium-misra-cpp-2008-5-2-12
106
113
# we write !pointer by intention
107
114
premium-misra-cpp-2008-5-3-1
108
115
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
+
109
125
# for (;;)
110
126
premium-misra-cpp-2008-6-2-3
111
127
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
+
112
140
# it's not a bug to not put default at the end of a switch body
113
141
premium-misra-cpp-2008-6-4-6
114
142
@@ -143,15 +171,24 @@ premium-misra-cpp-2008-8-5-3
143
171
# TODO Fix these
144
172
premium-misra-cpp-2008-9-3-1
145
173
174
+ # returning non-const pointer/reference from method that is non-const
175
+ premium-misra-cpp-2008-9-3-2
176
+
146
177
# we use unions by intention sometimes
147
178
premium-misra-cpp-2008-9-5-1
148
179
149
180
# overridden methods is safe
150
181
premium-misra-cpp-2008-10-3-1
151
182
183
+ # use override/final
184
+ premium-misra-cpp-2008-10-3-2
185
+
152
186
# some classes have public members by intention
153
187
premium-misra-cpp-2008-11-0-1
154
188
189
+ # intentional: clang-tidy warns for redundant base class initializations
190
+ premium-misra-cpp-2008-12-1-2
191
+
155
192
# rule should not apply to deleted copy assignment operator
156
193
premium-misra-cpp-2008-12-8-2
157
194
@@ -161,8 +198,13 @@ premium-misra-cpp-2008-14-6-2
161
198
# function specializations: TODO check if we should refactor
162
199
premium-misra-cpp-2008-14-8-2
163
200
201
+ # we throw a pointer by intention
202
+ premium-misra-cpp-2008-15-0-2
203
+ premium-misra-cpp-2008-15-3-5
204
+
164
205
# we use preprocessor when it makes sense
165
206
premium-misra-cpp-2008-16-0-1
207
+ premium-misra-cpp-2008-16-0-7
166
208
premium-misra-cpp-2008-16-2-1
167
209
premium-misra-cpp-2008-16-2-2
168
210
premium-misra-cpp-2008-16-3-2
0 commit comments