Checking for Dispose() call with Resharper

Hi,

I'm new to Resharper, and it seems pretty good, but I was wondering - Can I customise it to raise compile errors if I don't call Dispose() on an object in a function, where that object supports Dispose() and is created within the same function?

Our developers are forever forgetting to do this in their code, and it causes serious problems.

Failing this, where can I raise an enhancement request for this feature?

Thanks.

2 comments
Comment actions Permalink

See http://www.intellij.net/tracker/resharper/viewSCR?publicId=5147

Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hi,

I'm new to Resharper, and it seems pretty good, but I was wondering -
Can I customise it to raise compile errors if I don't call Dispose()
on an object in a function, where that object supports Dispose() and
is created within the same function?

Our developers are forever forgetting to do this in their code, and it
causes serious problems.

Failing this, where can I raise an enhancement request for this
feature?

Thanks.



0
Comment actions Permalink

And why not just hilight differently Disposable objects, so that you don't miss objects that you don't known they implement IDisposable ?

0

Please sign in to leave a comment.