We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ref
False Positive of S3459 for backing field with ref property.
public class MyClass { private int _foo; public ref int Foo => ref _foo; }
No warning
warning S3459: Remove unassigned field '_foo', or set its value. (https://rules.sonarsource.com/csharp/RSPEC-3459)
Supress this warning manually
The text was updated successfully, but these errors were encountered:
Hi @dotjpg3141! I confirm this as a FP, I'll add a reproducer in our codebase shortly. Thanks!
Sorry, something went wrong.
S3459: Add reproducer for #9106
a369164
S3459: add reproducer for #9106
e0c3670
6f2c320
3331eaa
S3459: add reproducer for #9106 (#9112)
35e6404
martin-strecker-sonarsource
Successfully merging a pull request may close this issue.
Description
False Positive of S3459 for backing field with
ref
property.Repro steps
Expected behavior
No warning
Actual behavior
warning S3459: Remove unassigned field '_foo', or set its value. (https://rules.sonarsource.com/csharp/RSPEC-3459)
Known workarounds
Supress this warning manually
Related information
The text was updated successfully, but these errors were encountered: