Fix S3900: FN and FP #6997
Labels
Area: C#
C# rules related issues.
Sprint: SE
Short-lived* label for epic MMF-3077 *troll
Type: False Positive
Rule IS triggered when it shouldn't be.
Projects
Milestone
This is a problem with LVA and Captures. New issue was created in Fix S3900 FP: Don't raise if parameter is captured #7060
Object.ReferenceEquals
This is a problem with LVA and Captures. New issue was created in Fix S3900 FP: Don't raise if parameter is captured #7060
Lambda can see
ParameterReferenceOperation
from outer CFG. And we should not raise when this happens.Refactor this constructor to avoid using members of parameter 'paramName' because it could be null.
if the parameter is dereferenced inside the call to the base class constructor. If it's dereferenced inside the body of the constructor then the message should be the regularRefactor this method to add validation of parameter 'paramName' before using it.
The text was updated successfully, but these errors were encountered: