Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get Resharper to Consume StyleCop configuration

Tags:

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?

like image 270
jlembke Avatar asked Jun 24 '09 22:06

jlembke


People also ask

How to run StyleCop in Rider?

Apply settings from StyleCop files StyleCop). To start taking these settings into account, select the Enable StyleCop support checkbox on the Editor | Code Style page of JetBrains Rider settings Ctrl+Alt+S and choose which StyleCop file format should be used.

How do I open StyleCop settings editor?

The Settings. StyleCop file can be opened from the Explorer and edited through a GUI. If that doesn't work, try dragging the Settings file onto an application called StyleCopSettingsEditor.exe which is installed in your StyleCop Program Files folder.

How do you edit rules in StyleCop?

In your StyleCop install, there's a Settings. StyleCop file. You can edit this to turn off rules globally. Drag that file onto the Settings Editor executable in that file to edit it.


1 Answers

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.

like image 80
klashar Avatar answered Oct 07 '22 23:10

klashar