visual-studio-2008 - 宪兵忽略列表格式

标签 visual-studio-2008 mono gendarme

我正在开发 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/

相关文章:

mono - C#、宪兵、 Sonar 和 Jenkins : Exclude generated files from Gendarme

c++ - GCC/VS2008 : Different behaviour of function call when templated base class is derived from itself

.net - 如何在应用程序中的每个 MessageBox 上放置断点?

visual-studio-2008 - Visual Studio 2008 解决方案(SSRS 报告)到 Visual Studio 2013

visual-studio - 从源代码管理中排除嵌套文件

.net - 开发一个在 Mono 和 Windows 下运行的 ASP.Net web 应用程序有多难?

mono - JScript.NET 可以用于编写 .NET 应用程序的脚本吗?

multithreading - sqlite 在 WAL 模式下返回 SQLITE_BUSY

security - 是否有任何工具可以对 .net 桌面程序集和可执行文件执行安全分析?

c# - 在构建时如何设置 Gendarme 与 Teamcity 一起运行?