bubbleking
bubbleking

Reputation: 3601

What is "StyleCop compatibility" with ReSharper?

I am currently doing research to complete my org's migration to VS 2015, including implementing StyleCop.Analyzers, getting ReSharper settings updated and checked into source control, etc.

One topic I keep coming across is "compatibility" between StyleCop and ReSharper. A Jet Brains dev has even forked classic StyleCop in order to make it "compatible" with ReSharper 9.

What does "compatible" mean here? Is it as simple as making all of ReSharper's default code analysis settings match those in StyleCop, or something more involved?

Our upgrades/changes include:

... so I just want to make sure I have my bases covered.

Upvotes: 0

Views: 1079

Answers (1)

NikolaiDante
NikolaiDante

Reputation: 18639

Is it as simple as making all of ReSharper's default code analysis settings match those in StyleCop, or something more involved?

Yes, pretty much. It's all about keeping the rules in sync so that one doesn't flag an error the other is ignoring.


One thing to watch for on this migration is the version of the R# plugin. I haven't had much joy with ReSharper.StyleCop, but StyleCop by JetBrains 4.8 works fine, plus it is designed to "play nice" with StyleCop.Analyzers.

enter image description here

Upvotes: 1

Related Questions