Turn off "This class is never used/instantiated" & other warnings/suggestions

Answered

When a class is marked as serializable, the warnings that it is never used goes away. The same when it inherits from certain base classes (e.g. ASP.NET MVC Controller).

Is there a way to tell Rider that classes that inherit from my own custom class should not be flagged as never used/instantiated?

2 comments
Comment actions Permalink

Hello Rafael,

You can change the severity of inspection, but it will change the behavior for all of such cases or disable it locally, please take a look at the corresponding Help section

0
Comment actions Permalink

Thanks, I was able to more or less get it working with the MeansImplictlyUsed attribute.

0

Please sign in to leave a comment.