tags:

views:

234

answers:

2

Hi there. Can anybody confirm or deny that I can modify default styles provided by StyleCop by just modifying some configuration file?

A: 

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
A: 

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.

Simon P Stevens