StyleCop / StyleCop.ReSharper

Official ReSharper extension for StyleCop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stylecop marks null coalescing assignments as incorrect syntax (SA0102)

danieltulp opened this issue · comments

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

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

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

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

StyleCop is not maintained by us