2011-04-07 71 views
3

我工作的一個C#解決方案,我使用憲兵與Visual Studio集成,以輸出到錯誤列表窗口,當我編譯。憲兵忽略列表格式

我可以在Gendarme的源代碼和文檔中看到,您可以指定一個忽略列表來讓Gendarme忽略程序集中的某些類,但是我不能在我的生活中找到任何顯示例如該文件要求的格式。

任何人都可以幫忙嗎?

回答

4

這是非常簡單的,你可以找到在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