忽略ReSharper的分析,设计和生成的文件 [英] Ignore designer and generated files in Resharper analysis

查看:97
本文介绍了忽略ReSharper的分析,设计和生成的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用ReSharper的几天,我真的很喜欢这个工具,但有一件事让我很烦这件事,我不知道它是可以改变的。

I've been using Resharper for a few days and I really like this tool, but there's one thing that annoys me about it and I wonder if it can be changed.

我收到很多问题的通知,从产生code(约1400在我的项目)。我要设置这些文件为忽略,因此他们不会被检查,你可以用了StyleCop做,codeAnalysis。很遗憾,看起来像ReSharper的忽略产生code设置从它的选择,因为我仍然得到同样的通知。我试过设置文件掩码(即对于 *。RESX ),并添加文件手动生成,但它仍然不会改变任何东西。

I'm getting lots of issue notifications from generated code (almost 1400 in my project). I'd want to set those files as ignored so they won't be checked as you can do with StyleCop and CodeAnalysis. Unfortunatelly it looks like Resharper ignores Generated Code settings from it's options because I'm still getting the same notifications. I've tried setting a file mask (i.e. for *.resx) and add files manually to generated, but still it doesn't change anything.

我不知道它的问题,但是我使用VS 2010。

I don't know if it matters but I'm using VS 2010.

推荐答案

我刚刚收到一个答案这个从ReSharper的支持:

I've just received an answer for this from ReSharper support:

为了跳过在code检查,你应该打开的ReSharper>选项> code检验>设置,preSS编辑项目跳过'和你的文件添加到列表中的文件。

In order to skip those files during code inspection you should open ReSharper > Options > Code Inspection > Settings, press 'Edit items to skip' and add your files to that list.

这篇关于忽略ReSharper的分析,设计和生成的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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