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

Stylecop marks null coalescing assignments as incorrect syntax (SA0102) #56

Open
danieltulp opened this issue Dec 15, 2022 · 4 comments

Comments

@danieltulp
Copy link

danieltulp commented Dec 15, 2022

I'm runing StyleCop 2022.2.0 in ReSharper 2022.3 in Visual Studio 2022 17.4.2 Community edition

When I try to use null coalescing assignments, StyleCop says this is bad syntax.

image

image

@matkoch
Copy link
Collaborator

matkoch commented Dec 15, 2022

Null-coalescing is a C# 8 feature, but StyleCop has been discontinued a long time since then already.

Please see https://github.com/StyleCop/StyleCop

@danieltulp
Copy link
Author

thanks for the reply @matkoch, but this information would than also be relevant at https://github.com/StyleCop/StyleCop.ReSharper

@ehsomma
Copy link

ehsomma commented Dec 19, 2022

I have the same problem with "records", it gets an SA0102 (syntax error).
Is there any way to disable SA0102 error from the Stylecop Resharper extension? Or can you add this feature in the next version of the plugin?

image

Thanks

@matkoch
Copy link
Collaborator

matkoch commented Dec 19, 2022

StyleCop is not maintained by us

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

No branches or pull requests

3 participants