暂时禁用ReSharper 6上的StyleCop警告 [英] Temporarily disable StyleCop warnings on ReSharper 6
问题描述
我下载了与ReSharper 6集成的StyleCop 4.6.3,结果真的很棒!
I downloaded StyleCop 4.6.3 which integrates with ReSharper 6 and the results are really fantastic!
但是,在特定项目中,我想暂时禁用StyleCop警告,然后稍后再次启用.
However on a specific project I would like to disable the StyleCop warnings (temporarily) and enable again later on.
有什么办法吗?我似乎在ReSharper菜单(选项等)上找不到它.
Is there any way of doing this? I can't seem to find it on the ReSharper menu (options, etc).
推荐答案
您可以为每个项目使用不同的Settings.Stylecop
设置,只需创建一个忽略所有规则的设置即可.右键单击一个项目,然后选择Stylecop settings
进行修改.
You can use different Settings.Stylecop
settings for each project, just create one that ignores all the rules. Right click on a project and select Stylecop settings
to modify them.
我认为您也可以通过从ReSharper-> Plugins中取消选中插件来禁用插件...(在5.1版中,不确定在6.0中是否相同)
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)
这篇关于暂时禁用ReSharper 6上的StyleCop警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!