Can anybody confirm or deny that I can modify default styles provided by StyleCop by just modifying some configuration file?
Asked
Active
Viewed 4,042 times
2 Answers
2
You can disable rules but if you want to check a custom style, you will have to code your own rules. You may read the API help file of StyleCop.

Guillaume
- 12,824
- 3
- 40
- 48
2
Creation of new rules requires some C# code. See here and here for some articles on custom rule creation.
You can enable/disable the existing rules with a configuration file. Stylecop comes with the StyleCopSettingsEditor.exe which can be used to edit/generate a xml config file to configure which rules will be run. See this question on how to disable specific rules.

Community
- 1
- 1

Simon P Stevens
- 27,303
- 5
- 81
- 107