We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88381f2 commit d9a8fd0Copy full SHA for d9a8fd0
analyzers/tests/SonarAnalyzer.Test/TestCases/RedundantJumpStatement.cs
@@ -259,4 +259,32 @@ public class Log
259
{
260
public void Finally() { }
261
}
262
+
263
+ // https://sonarsource.atlassian.net/browse/NET-1149
264
+ public class Repro_1149
265
+ {
266
+ public void Method(List<string> items)
267
268
+ items.ForEach(LocalFunction);
269
270
+ return; // Noncompliant - FP
271
272
+ void LocalFunction(string item)
273
274
+ Console.WriteLine(item);
275
+ }
276
277
+ public void Method2(List<string> items)
278
279
280
281
282
283
284
285
286
+ return; // Noncompliant
287
288
289
290
0 commit comments