Mark unused [Obsolete] functions as information, no as warning.

Due to the rules of keeping an obsolete function around for 3 months at
the client I currently work for, it would be nice to have resharper give
an information instead of a warning for unused code that is marked
obsolete (as it is intended to become unused).

I'm also missing a feature to find all dead code and an option to
include public functions (when developing three libraries that work
together, classes and functions must me marked public, but as all
projects are in the same solution, unused public functions are errorous
as well.

Another thing that is related to unusedness would be to mark methods
that are only used by unused function as unused as well.

Jesse

PS: Missed you at TechEd A'dam, the people from DevExpress were showing
off some very nice unreleased features...

1 comment
Comment actions Permalink

Personally, I do not think the suggested feature is reasonable. See:
ReSharper counts methods as unused only if they are private, which means
thay do not play in publuc interface. In this case you should safely remove
this method without any breaks in logic, leaving all other work to source
control software (i.e. history of the code modification).

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Jesse Houwing" <jesse.houwing@sogeti.nl> wrote in message
news:dak7rj$744$1@is.intellij.net...

Due to the rules of keeping an obsolete function around for 3 months at
the client I currently work for, it would be nice to have resharper give
an information instead of a warning for unused code that is marked
obsolete (as it is intended to become unused).

>

I'm also missing a feature to find all dead code and an option to include
public functions (when developing three libraries that work together,
classes and functions must me marked public, but as all projects are in
the same solution, unused public functions are errorous as well.

>

Another thing that is related to unusedness would be to mark methods that
are only used by unused function as unused as well.

>

Jesse

>

PS: Missed you at TechEd A'dam, the people from DevExpress were showing
off some very nice unreleased features...



0

Please sign in to leave a comment.