Possible Duplicate:
How to suppress a StyleCop warning?
Currently I'm setting up StyleCop for our projects and I stumbled on one rule of StyleCop. It's about the SA1300 naming rule:
SA1300: namespace names begin with an upper-case letter: iCompanyName.
So my company starts with a lower-case letter. And various product names do also. Therefore, is there a possibility to add exceptions to this rule in the Settings.StyleCop file?
I'd like to prevent to write custom StyleCop rules using C#.
Thanks in advance for your replies.
edit: I realize I should have noted that I don't actually want to disable/suppress the StyleCop rule completely. I'd just like to make some exceptions on this naming rule.
The SA1300 rule is not configurable (at least in version 4.4). If you don't like its behaviour and don't want to disable the rule entirely, you will need to use a substitute custom rule. You might be able to find one available from a third-party such as the StyleCop+ project. If not, you're pretty much stuck rolling your own...
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