[Mono-dev] New Gendarme Rules
Sebastien Pouliot
sebastien.pouliot at gmail.com
Wed Apr 26 09:21:59 EDT 2006
Hello Russell,
On Mon, 2006-04-17 at 23:10 -0400, Russell Morris wrote:
> Hello all,
>
> I'm beginning to undertake some work on a few new Gendarme rules. The
> attached document outlines ideas for 5 new Gendarme rules I plan on
> writing in the next week or two. I'd appreciate it if some folks could
> look over them and provide any suggestions or criticisms.
First I really like the proposal itself. Each rule is already clearly
documented (better than my own) and already shows some test cases.
Rules #1 and #2 would be interesting to run against Mono class libraries
(and fix any issue) as we often have comment (and bug report) for such
problems.
Rule #3 is also interesting for applications (not sure we'll get into
that inside the class libraries).
> Particularly, rules 4 and 5 concern safe usage of IDisposable objects.
> I want to be able to catch non-disposal (4) and also potentially
> premature disposal (5) scenarios. However, neither rule should trip
> code that either aggregates IDisposable objects as a part of its
> lifetime, or participates in a chain of IDisposables (like an
> implementation of Stream).
Both rules #4 and #5 are very interesting (and probably a lot harder to
get correctly) as they provide checks for hard to find problems.
--
Sebastien Pouliot <sebastien at ximian.com>
Blog: http://pages.infinit.net/ctech/
More information about the Mono-devel-list
mailing list