TFS 2010:如何根据代码重复指标拒绝门控签入?
我正在运行 Microsoft Team Foundation Server 2010,并使用它来构建 .NET 4.0 解决方案。
我启用了门控签入,并且我们将测试作为构建的一部分运行,因此服务器拒绝任何导致测试中断的签入。
但是,我想更进一步,拒绝包含超过一定比例的代码重复的签入。
TFS 2010 是否有一个工具,或者可能是我错过的现有功能,可以让我执行此操作?
I'm running Microsoft Team Foundation Server 2010, and using it to build a .NET 4.0 Solution.
I have enabled gated checkins, and we run our tests as part of the build, so the server rejects any checkin that causes the tests to break.
However, I want to take this a step further and reject checkins that contain more than a certain proportion of code duplication.
Is there a tool for TFS 2010, or perhaps an existing feature that I've missed, that would allow me to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个很棒的主意!
我还没有听说过这个实际上正在构建,但是 Community TFS Build Extensions 的人会是最好的为您指明正确的方向。
我可以想象这个活动将很难构建:)并且您可能不想自己解决它。我会对该项目提出请求。
That is a fantastic idea!
I have not heard of this actualy being built, but the guys over at the Community TFS Build Extensions would be best placed to point you in the right direction.
I can imagine that this Activity would be quite dificult to build :) and you may not want to tackle it yourself. I would make a request on that project.