Finding dead code exluding a project (e.g. unit test project)

[RS 5.1]

Can I somehow define that the "Method is unused" analysis should exclude a certain project?
In my case I have unit test in a project in the same solution as the other projects. There are e.g. methods that are only used by my unit tests, and I would like to have these flagged as "not used" so they (and corresponding unit tests) can be removed.

Is there a way of doing that?

Thanks.

1 comment
Comment actions Permalink

Hello,

I'm afraid at the moment if the method is called somewhere ReSharper considers
it to be used no matter what project it is in. Thank you!

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



Can I somehow define that the "Method is unused" analysis should
exclude a certain project?

In my case I have unit test in a project in the same solution as the
other projects. There are e.g. methods that are only used by my unit
tests, and I would like to have these flagged as "not used" so they
(and corresponding unit tests) can be removed.

Is there a way of doing that?

Thanks.

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



0

Please sign in to leave a comment.