暂时禁用 ReSharper 6 上的 StyleCop 警告
我下载了与 ReSharper 6 集成的 StyleCop 4.6.3,结果非常棒!
然而,在一个特定的项目中,我想(暂时)禁用 StyleCop 警告,并稍后再次启用。
有什么办法可以做到这一点吗?我似乎无法在 ReSharper 菜单(选项等)上找到它。
I downloaded StyleCop 4.6.3 which integrates with ReSharper 6 and the results are really fantastic!
However on a specific project I would like to disable the StyleCop warnings (temporarily) and enable again later on.
Is there any way of doing this? I can't seem to find it on the ReSharper menu (options, etc).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

您可以为每个项目使用不同的
Settings.Stylecop
设置,只需创建一个忽略所有规则的设置即可。右键单击项目并选择Stylecop 设置
进行修改。我认为您还可以通过从 ReSharper->Plugins 中取消勾选插件来禁用插件...(在版本 5.1 中,不确定在 6.0 中是否相同)
You can use different
Settings.Stylecop
settings for each project, just create one that ignores all the rules. Right click on a project and selectStylecop settings
to modify them.I think you can also disable plugins by unticking them from ReSharper->Plugins... (in version 5.1, not sure if it's the same in 6.0)