suppress inspections in project

When working on unit tests, I usually end up suppressing certain inspections (using comments) within test classes. I still use these inspections in on projects (like the library that the unit test is based on). This generally results in the same set of suppression comments at the top of each unit test file (example).
It would be really useful to be able to specify inspections that are disabled for an individual project, while leaving them on for other projects.

5 comments
Comment actions Permalink

Hello,

You can just tell R#6 not to inspect test methods and types like that.

resharper_unittest_config.jpg

0
Comment actions Permalink

That will handle naming rules (and therefore inspections based on those rules), but I haven't found a way to do this for other types of inspections (such as using extension methods as static methods or not using the return value of pure method calls, etc).

0
Comment actions Permalink

Hello Tommy
     I'm afraid at the moment there's no way to suppress inspections on a per-project basis. Thank you!

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0
Comment actions Permalink

And here we are 9 years later with the same answer... Except a lot has changed now, we can have Roslyn analyzers perform a similar analysis during the "dotnet build" and with a perfect integration with Resharper/Rider. As such, you should definitely implement this feature.

0
Comment actions Permalink

Hello Florent,

 

Please feel free to comment or vote for the corresponding feature request - https://youtrack.jetbrains.com/issue/RSRP-463448/

Thank you.

0

Please sign in to leave a comment.