StyleCop / StyleCop.ReSharper

Official ReSharper extension for StyleCop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

MagB168 opened this issue · comments

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.

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.