22

Our project already has a StyleCop configuration. I am using ReSharper and I would like to be able to have R# use the StyleCop settings.

I know that you can use StyleCopForResharper to build the settings in Resharper and export them as a StyleCop configuration, but can you do the reverse and have Resharper consume the existing StyleCop config?

jlembke
  • 13,217
  • 11
  • 42
  • 56
  • I would love to know if this is possible too. I use Resharper and StyleCop together, and find it terribly annoying that many of R#'s naming convention and refactors directly go against StyleCop – Will Eddins Jun 25 '09 at 04:38

2 Answers2

8

I am not sure is this post still actual. There is free StyleCop for ReSharper at CodePlex.

It uses StyleCop assembly so it will use project file settings.

klashar
  • 2,519
  • 2
  • 28
  • 38
  • It appears it is a new drop that does say it reads current StyleCop settings. It was just dropped yesterday, apparently. Thanks klashar, I'll try it out some time today! – jlembke Aug 14 '09 at 18:16
  • This is fantastic feature - you can fix the StyleCop warning while editing your code and on code cleanup! – klashar Aug 14 '09 at 20:34
2

I don't know of any way to do this, but it is possible for R# to layout your members/properties/methods etc. to comply with StyleCop. Check out my blog post at http://stevedunns.blogspot.com/2009/03/halt-this-is-stylecop-you-are-in.html.

HTH.

Steve

Steve Dunn
  • 21,044
  • 11
  • 62
  • 87
  • At any rate, it looks like there's no automatic way to do this. I'll either be managing settings one-by-one, or something just like it. Thanks for the link, Steve. Good stuff. – jlembke Jul 02 '09 at 02:27