How to suppress stylecop SA1600 errors on namespace level?

Jun 13, 2011 at 9:57 PM

Hi,

I have a C# namepace code generated from SQLMetal.exe. When I run stylecop, it returns me a lot of SA1600 errors.

How can I suppress those errors in namespace level?  I tried the following, it does not work.

[model: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "SA1600", Scope = "namespace", Target ="SVControlDB")]

namespace SVControlDB

{

...

}

Can someone help?

Jacky

Coordinator
Jun 19, 2011 at 2:02 PM

You can't - its not supported at namespace level.