Ignore constructor and generated files in Resharper analysis

I have been using Resharper for several days and I really like this tool, but there is one thing that annoys me and I wonder if it can be changed.

I get a lot of problem notifications from the generated code (almost 1400 in my project). I would like these files to be ignored, so they will not be checked, as you can do with StyleCop and CodeAnalysis. Unfortunately, it seems that Resharper is ignoring the parameters of the generated code from it, because I still get the same notifications. I tried to set the file mask (i.e., For *.resx) and add the files manually to the generated ones, but still nothing changes.

I don't know if this matters, but I am using VS 2010.

+5
source share
2 answers

I just got a response from ReSharper support:

To skip these files while checking the code, you must open ReSharper> Options> Code Inspection> Settings, click "Edit items for skips" and add files to this list.

+8
source

I agree with RaYell's answer; to completely ignore these files, you need to add them to the Elements to skip .

Here is another useful piece of information:

What makes the generated code different from the elements to skip ?

[ ], ( ), , , , , . , , - . .

http://blogs.jetbrains.com/dotnet/2011/06/preventing-items-from-being-analyzed-in-resharper/

+4

All Articles