Fix S2259 FP: Recognize NotNull results of String methods #6158
Labels
Area: C#
C# rules related issues.
Area: CFG/SE
CFG and SE related issues.
Area: VB.NET
VB.NET rules related issues.
Type: CFG/SE FPs
Rule IS triggered when it shouldn't be for CFG and SE rules.
Milestone
Methods like
str.Trim()
never return null. We should learn that from their invocations. It's similar to what we do for Linq Enumerable.We need to go through the methods and identify those that never return null like Trim, SubString, and so on
It will fix this issue from Peach: https://peach.sonarsource.com/project/issues?issues=AYORbz8FkNA1ahe47Aev&open=AYORbz8FkNA1ahe47Aev&id=dotnet-runtime
The text was updated successfully, but these errors were encountered: