Skip to content

Conversation

@Tim-Pohlmann
Copy link
Contributor

Fixes #8905

_ = Property.HasValue; // Compliant
Property = null;
Property.GetType(); // FN https://github.com/SonarSource/sonar-dotnet/issues/6930
Property.GetType(); // Noncompliant
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#6930 was closed prematurely.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Apr 9, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@sonarqubecloud
Copy link

sonarqubecloud bot commented Apr 9, 2024

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@cristian-ambrosini-sonarsource cristian-ambrosini-sonarsource deleted the Tim/S2259_FP_PropertyReference branch April 9, 2024 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix S2259 FP: PropertyReference does not learn from underlying symbol

2 participants