Skip to content

Commit

Permalink
Add S3900 repor for #9500
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim-Pohlmann committed Jul 3, 2024
1 parent 7333beb commit 24d7b0e
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -861,3 +861,12 @@ public void Method(object @event)
@event.ToString(); // Noncompliant {{Refactor this method to add validation of parameter '@event' before using it.}}
}
}

// https://github.com/SonarSource/sonar-dotnet/issues/9500
public class Repro_9500
{
void Method(List<int> list)
{
_ = list.Where(x => true); // FN
}
}

0 comments on commit 24d7b0e

Please sign in to comment.