Tools > External Tools > Add
Here’s some output from the included example solution:
My warning against overdependence notwithstanding, this really is a tool that should be run against any object model code.
Of course, Todd had a lot more to say than just this tip, and the whole show is definitely worth a listen. I will disagree on one point though: I wouldn’t consider returning an
SPWeb from a helper method to be a “false positive”. Sure, you can document the behavior, but it’s much easier to maintain over time if these objects are always created and disposed in the same place (if only because you can use
using). I have yet to see an example where this sort of helper pattern couldn’t be refactored out into something more manageable.