如何摆脱了StyleCop的 [英] How to get rid of StyleCop

查看:194
本文介绍了如何摆脱了StyleCop的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我们的球队有人安装了StyleCop,从那以后所有的项目,他装起来,并承诺到源代码控制拒绝加载除非安装了StyleCop。

Someone on our team installed StyleCop and since then all of the projects he loaded up and committed to source control refuse to load unless stylecop is installed.

我知道我可以手动编辑.csproj的文件,以摆脱它,但有一个简单的方法来从项目文件自动删除这些部件了StyleCop,使他们能加载建成了非了StyleCop感染的Visual Studio的机器上?

I know I can manually edit the .csproj files to get rid of it, but is there an easy way to automatically remove these stylecop parts from the project files so they can be loaded and built on a non-stylecop-infected Visual Studio machine?

推荐答案

隐藏StyleCop的真正警告。它是一种虚荣的锻炼和邪恶。

Stylecop hides real warnings. Its a vanity exercise and its evil.

不要使用它。

我发现了StyleCop产生很多很多琐碎的警告,淹没了真正的警告。通过一切手段使用这些工具,但不强迫他们打开。由于没有了StyleCop警告是一个毫无意义的指标。

I find that stylecop generates many many trivial warnings that drown out the real warnings. By all means use these tools but don't force them to be on. Having no stylecop warnings is a meaningless metric.

这篇关于如何摆脱了StyleCop的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆