views:

165

answers:

2

I have several CA1704:IdentifiersShouldBeSpelledCorrectly warnings that I want to suppress. Basically they refer to the company name which is deemed to be spelled incorrectly. The company name is part of several namespaces in my project, and in order to suppress all the warnings I need to add a lot of suppressions to the GlobalSuppressions file. Is there any way to suppress all warning in a single line in order to aviod my GlobalSuppressions file to become overly cluttered?

+1  A: 

You could add the company name to CustomDictionary.xml

Henrik
+2  A: 

You can't suppress many warnings with a single suppression, but when it comes to unknown or deliberate deviant spelling, the best solution is to add a custom Code Analysis dictionary.

Mark Seemann