S2360 should not complain for methods marked as Obsolete

I recommend to change the conditions for S2360 “Optional parameter should not be used”.
If the method is marked as Obsolete it is planned to be removed. It just remains for API compatibility. So, S2360 should not complain anymore.

1 Like

The question here is also, should this apply to many (most) other rules?
If I have marked a type or member as obsolete, should SQ still complain about rule violations on that type or member?

Maybe I am obsoleting the stuff because I want to improve my code in accordance with SQ.

1 Like

Thank you for raising this. We will definitely consider that problem in the future.

To be fair, this is a general issue that goes beyond just C#…