How can you force StyleCop for ReSharper to ignore files?

后端 未结 3 582
无人及你
无人及你 2020-12-31 06:59

We’ve just been working on introducing StyleCop to our team and are using the StyleCop ReSharper plugin from Code Plex. Problem is, every single file in the project appears

相关标签:
3条回答
  • 2020-12-31 07:15

    "Are you sure you have have unchecked the StyleCop settings option that specifies stylecop should check designer files? (StyleCop Options > Rules > Detailed Settings > Analyze Designer Files)?"

    http://stylecopforresharper.codeplex.com/Thread/View.aspx?ThreadId=47346

    0 讨论(0)
  • 2020-12-31 07:36

    This was what I was looking for, except in Resharper 6 the correct keystroke to disable inspection in a specific file is: Ctrl + Shift + Alt + 8

    0 讨论(0)
  • 2020-12-31 07:40

    You can completely disable ReSharper for a particular file by pressing CTRL + 8. You'll see the little 'eye' in the top right of the code window (at the top of the gutter) go grey, indicating it's disabled.

    Press the keystroke again to re-enable it.

    0 讨论(0)
提交回复
热议问题