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
Copy file name to clipboardExpand all lines: rule_packages/cpp/Templates.json
+28-1Lines changed: 28 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -190,6 +190,33 @@
190
190
}
191
191
],
192
192
"title": "In a class template with a dependent base, any name that may be found in that dependent base shall be referred to using a qualified-id or this->."
193
+
},
194
+
"M0-1-3": {
195
+
"properties": {
196
+
"allocated-target": [
197
+
"implementation"
198
+
],
199
+
"enforcement": "automated",
200
+
"obligation": "required"
201
+
},
202
+
"queries": [
203
+
{
204
+
"description": "Unused variables complicate the program and can indicate a possible mistake on the part of the programmer.",
205
+
"kind": "problem",
206
+
"name": "A project shall not contain unused local variables",
207
+
"precision": "very-high",
208
+
"severity": "warning",
209
+
"short_name": "UnusedLocalVariable",
210
+
"tags": [
211
+
"maintainability",
212
+
"readability"
213
+
],
214
+
"implementation_scope": {
215
+
"description": "In limited cases, this query can raise false-positives for variables that are defined as constexpr and used in an expression to instantiate a template."
216
+
}
217
+
}
218
+
],
219
+
"title": "A project shall not contain unused local variables."
0 commit comments