Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to run StyleCop on just 1 file in a project?

Tags:

stylecop

Is it possible to run StyleCop on just 1 file in a project?

like image 233
JL. Avatar asked Dec 11 '09 12:12

JL.


People also ask

How do I use StyleCop settings?

Apply settings from StyleCop files To start taking these settings into account, select the Read code style from StyleCop files checkbox on the Code Editing | General Formatter Style page of ReSharper options ( Alt+R, O ) and choose which StyleCop file format should be used.

How do I enable StyleCop?

By default, JetBrains Rider does not read settings from StyleCop files (RuleSet and Settings. 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.


1 Answers

Yes, by selecting "Run StyleCop" from the context menu of the .cs file, not from the Tools menu or the project's context menu.

http://cleartopartlycloudy.blogspot.com/2009/06/stylecop-with-single-file.html

like image 147
Taneli Waltari Avatar answered Jan 01 '23 19:01

Taneli Waltari