Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ignore designer and generated files in Resharper analysis

I've been using Resharper for a few days and I really like this tool, but there's one thing that annoys me about it and I wonder if it can be changed.

I'm getting lots of issue notifications from generated code (almost 1400 in my project). I'd want to set those files as ignored so they won't be checked as you can do with StyleCop and CodeAnalysis. Unfortunatelly it looks like Resharper ignores Generated Code settings from it's options because I'm still getting the same notifications. I've tried setting a file mask (i.e. for *.resx) and add files manually to generated, but still it doesn't change anything.

I don't know if it matters but I'm using VS 2010.

like image 503
RaYell Avatar asked Jun 09 '10 12:06

RaYell


People also ask

How do I change my ReSharper settings?

To configure the main set of ReSharper preferencesIn the Visual Studio menu, choose ReSharper | Options. In the Options dialog that appears, select a node in the left pane and configure settings in the right pane. Use the search box in the left top corner to find a specific preference.

How do I temporarily disable ReSharper?

ReSharper can be suspended and resumed in the "Tools | Options | ReSharper | General" dialog. You may also map any keyboard shortcut for 'ReSharper_ToggleSuspended' command in the "Tools | Options | Environment | Keyboard" dialog.

Does ReSharper slow down Visual Studio?

Resharper is a great Visual Studio productivity extension but on the other hand it slows down significantly the IDE, especially when working with large solutions.

How do I run a ReSharper code analysis?

ReSharper helps you resolve most of the discovered code issues automatically. All you need is to press Alt+Enter when the caret is on a code issue highlighted in the editor and check the suggested quick-fixes.


1 Answers

I've just received an answer for this from ReSharper support:

In order to skip those files during code inspection you should open ReSharper > Options > Code Inspection > Settings, press 'Edit items to skip' and add your files to that list.

like image 91
RaYell Avatar answered Nov 10 '22 17:11

RaYell