我正在开发一个C#解决方案,我正在使用与Visual Studio集成的Gendarme,以便在编译时输出到错误列表窗口。
我可以在Gendarme的源代码和文档中看到,您可以指定一个忽略列表来让Gendarme忽略程序集中的某些类,但我在网上找不到任何文档来显示此文件所需格式的示例。
有人能帮上忙吗?
发布于 2011-05-11 01:47:51
这非常简单,您可以在self-test.ignore文件中找到一个示例。基本忽略规则格式如下:
R: Gendarme.Rules.Category.Name
T: Excluded.Class.Name
N: Excluded.Namespace.Name
M: System.Void Excluded.Class::ExcludedMethodSignature(System.Int32)
A: ExcludedAssembly
... (other lines related to this rule)
R: Gendarme.Rules.Next.Rule
...您可能还希望查看忽略文件parsing code。
发布于 2012-01-04 07:05:42
此链接描述了格式,并提供了一个有用的注释:http://manpages.ubuntu.com/manpages/oneiric/man5/gendarme.5.html
可以从Gendarme.xml生成的
缺陷列表中自动生成一个忽略文件(使用gd2i)。
https://stackoverflow.com/questions/5578756
复制相似问题