Open andrei-epure-sonarsource opened 3 years ago
Currently in GetTypeWithIsAssignableFrom.CSharp9.Fixed.cs we generate the following "fixed" code, which actually contains a code smell:
GetTypeWithIsAssignableFrom.CSharp9.Fixed.cs
!(apple != null); // should be 'apple == null' !(f is Apple); // should be 'f is not Apple'
For the f is not Apple, we should extend the Lightup layer (and contribute to StyleCop) to be able to do it.
f is not Apple
Keyword: NotPattern
Could be related to improving the C# syntax equivalence checker (internal trello card). Also created a separate trello card.
cc @csaba-sagi-sonarsource
Currently in
GetTypeWithIsAssignableFrom.CSharp9.Fixed.cs
we generate the following "fixed" code, which actually contains a code smell:For the
f is not Apple
, we should extend the Lightup layer (and contribute to StyleCop) to be able to do it.Keyword: NotPattern