Is it possible to run StyleCop on just 1 file in a project?
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With