3

我使用 Simian 来分析我的 c# 项目中的重复代码。但我想排除两种情况。一种是不应该分析单元测试文件,另一种是自动生成的文件(例如Microsoft.Moles自动生成mgcs文件)

当我只有一种文件时,我的论点很好,不包括 -formatter=vs:c:\temp\SimianResult.log -language=cs $(SolutionDir)/ /*.cs -excludes= /*Test.cs -阈值=15

但是当我添加第二种情况时,我不知道如何将它们放在一起,我在网上搜索它,但找不到示例,甚至官方网站http://www.harukizaemon.com/simian/ 也没有展示下。我尝试了以下组合,但都失败了
(1)... -excludes= /*Test.cs, /*mgcs -threshold=15
(2)... -excludes= /*Test.cs; / mgcs -threshold=15
(3)... -excludes=
*/ Test.cs * /*mgcs -threshold=15

有人知道如何解决吗?谢谢

4

1 回答 1

4

我的同事为我尝试了正确的语法并且它有效。关键是你必须把关键字“排除”两次。所以我的问题的答案是 -formatter=vs:c:\temp\SimianResult.log -language=cs $(SolutionDir)/ /*.cs -excludes= / Test.cs -excludes= */mgcs -threshold=15

于 2013-06-18T06:42:54.260 回答