StyleCop / StyleCop.ReSharper

Official ReSharper extension for StyleCop
163 stars 29 forks source link

StyleCop.Resharper does not support feature of C# 9.0 (is not null) #47

Closed MagB168 closed 3 years ago

MagB168 commented 3 years ago

I use: JetBrains ReSharper 2021.2.1 Build 212.0.20210826.105310 built on 2021-08-26 ReSharper 2021.2.20210826.112029 StyleCop.Resharper 2021.2.0 (see attachment) Screenshot_8

(see code example attachment) I do null check of an object with "is not null" and I got error warning. Screenshot_9

if I uninstall the StyleCop.Resharper from Resharper, I get no error warning anymore. I like to use StyleCop.Resharper due to its ability to generate header comment intelligently. Please integrate the features of C# 9 in StyleCop as soon as possible. Note: C# 9.0 is not very new since it is released on May 2020! Thank you in advance.

matkoch commented 3 years ago

The plugin uses the original https://github.com/StyleCop/StyleCop repository, which is not under our control and which itself gives the recommendation to consider moving to https://github.com/DotNetAnalyzers/StyleCopAnalyzers. There's not much we can do here. It simply doesn't support the latest language versions.