Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix S2259 FP: PropertyReference does not learn from underlying symbol #9030

Merged

Conversation

Tim-Pohlmann
Copy link
Contributor

Fixes #8905

@@ -140,7 +140,7 @@ public void M()
Property = null;
_ = 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.

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

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 merged commit 1a054c2 into master Apr 9, 2024
33 checks passed
@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