Skip to content

Fix S3247 FP: Should not report on member access objects #9485

@pavel-mikula-sonarsource

Description

Rule should not report on member-access symbols

        if (arg.Property is Fruit)                  // Noncompliant FP
        {
            _ = (Fruit)differentInstance.Property;  // Secondary
        }

Metadata

Metadata

Labels

False PositiveRule IS triggered when it shouldn't be.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions