我正在开发 C# 解决方案,并且正在使用与 Visual Studio 集成的 Gendarme,以便在编译时输出到错误列表窗口。
我可以在 Gendarme 的源代码和文档中看到,您可以指定一个忽略列表以使 Gendarme 忽略程序集中的某些类,但我一生都无法在网上找到任何显示示例的文档该文件所需的格式。
有人可以帮忙吗?
最佳答案
这非常简单,您可以在 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 .
关于visual-studio-2008 - 宪兵忽略列表格式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5578756/