[Mono-dev] Smokey - a new FxCop/Gendarme like tool

Jonathan Pryor jonpryor at vt.edu
Thu Jul 26 07:11:18 EDT 2007


On Thu, 2007-07-26 at 02:58 -0700, Jesse Jones wrote:
> I've written a tool to analyze assemblies for problems. Currently it  
> only supports eleven rules, but that's enough to find some serious  
> problems in the 1.2.5 mono assemblies. Here are some sample reports:
>      <https://home.comcast.net/~jesse98/public/mscorlib.dll.report.txt>
>      <https://home.comcast.net/~jesse98/public/System.dll.report.txt>
>      <https://home.comcast.net/~jesse98/public/ 
> System.Xml.dll.report.txt>

I'd like to second Cedric Vivier's question about making these Gendarme
rules. :-)

Furthermore, the MethodCanBeMadeStatic rule, while nice in principal,
should be avoided/disabled for tests against these assemblies as we
can't change the method signature for compatibility reasons (looking at
the *dozens* of hits in System.dll).  Alternatively, if there were a way
to make it check only non-public/protected methods, that would be
useful.  The public/protected interfaces cannot change.

I would also suggest using "Cannot" instead of "Cant" for your rule
names. :-)

Thanks,
 - Jon





More information about the Mono-devel-list mailing list