Excluding certain files

9 views
Skip to first unread message

boflynn

unread,
Sep 7, 2009, 10:27:53 AM9/7/09
to Gendarme
Hi
I have a folder with about 45 dlls in it. Some of them are external,
e.g. IBM.Data.Informix.dll which is causing Gendarme to crash.
How do I exclude certain dlls?

Sebastien Pouliot

unread,
Sep 8, 2009, 3:44:37 PM9/8/09
to gend...@googlegroups.com

You can exclude assemblies from analysis by supplying a file that list
the assemblies you want to analyze (e.g. gendarme @file.list)

However it's still possible that the assembly resolver will load them to
get more details on its (e.g. types, methods) metadata. In that case
it's possible that you'll also get the crash (depending where the bug
resides).

The best (and future proof) approach is to fill a bug report
(bugzilla.novell.com) about the crash and include the offending assembly
as an attachment (it can be a private attachment). That will make sure
Gendarme (or Cecil) is fixed.

A more immediate/hackish way would be to copy all assemblies, minus the
crashing ones, into a new directory and run gendarme on them (that won't
directly load them and it will fool the resolver not to find/load them
too).

Sebastien

Reply all
Reply to author
Forward
0 new messages