How to prevent Resharper from analyzing generated code files?

I am new to Resharper, so maybe this is an obvious no-brainer, but I can't seem to make this work.

In the Resharper options dialog, there is a section under "Code Inspection" called "Generated Code." I thought that if I added a generated file mask like:

*.Reference.cs

that Resharper would skip these files and not include them while analyzing files. However, unless I am doing something wrong, these files are still included in the Code Issues report in the Inspection Results Window.

How do I force Resharper to skip these files and stop reporting what I deem to be "false positives?"

I am using Resharper 5 Full Edition Build 5.0.1659.36 inside of Visual Studio 2010.

Thanks

4 comments
Comment actions Permalink

Hello Charles,

In order to exclude a file from ReSharper analysis please open ReSharper
| Options | Code Inspection | Settings, press 'Edit Items to Skip...' and
add your files to that list. Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I am new to Resharper, so maybe this is an obvious no-brainer, but I
can't seem to make this work.

In the Resharper options dialog, there is a section under "Code
Inspection" called "Generated Code." I thought that if I added a
generated file mask like:

*.Reference.cs

that Resharper would skip these files and not include them while
analyzing files. However, unless I am doing something wrong, these
files are still included in the Code Issues report in the Inspection
Results Window.

How do I force Resharper to skip these files and stop reporting what I
deem to be "false positives?"

I am using Resharper 5 Full Edition Build 5.0.1659.36 inside of Visual
Studio 2010.

Thanks

---
Original message URL:
http://devnet.jetbrains.net/message/5276113#5276113



0
Comment actions Permalink

So I have to add files explicitly by name? What happens when I open a new project with different file names and paths?

Hmmm....

0
Comment actions Permalink

Hello Charles,

This list is maintained on a per-solution basis, so you will be able to configure
items that should be skipped for each solution separately. Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

So I have to add files explicitly by name? What happens when I open a
new project with different file names and paths?

Hmmm....

---
Original message URL:
http://devnet.jetbrains.net/message/5276431#5276431



0
Comment actions Permalink

I'm thinking this would be nice to be a per-project setting, so it wouldn't
matter what solution you were using the project from, the file(s) would be
skipped.



"Andrew Serebryansky"  wrote in message
news:c8a898dda91c8cd47d8709d2ac0@news.intellij.net...

Hello Charles,

This list is maintained on a per-solution basis, so you will be able to
configure
items that should be skipped for each solution separately. Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

So I have to add files explicitly by name? What happens when I open a
new project with different file names and paths?

>

Hmmm....

>

---
Original message URL:
http://devnet.jetbrains.net/message/5276431#5276431


0

Please sign in to leave a comment.