Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Suppressions » FxCop   (RSS)

TIP: Automatically generate Managed Code Analysis/FxCop suppressions

I see a lot of users attempting to hand code a SuppressMessageAttribute themselves. This can be error prone and is not needed when both Visual Studio and the standalone FxCop can automatically generate these for you. In Visual Studio 2005 Right-click

FAQ: Why does FxCop ignore my in-code (SuppressMessageAttribute) suppressions? [David Kean]

FxCop 1.35 brings with it the ability to suppress messages in code via the use of the SuppressMessage attribute. This allows you to do the following: public class PublicKey { private byte [] _Token; [...] [SuppressMessage( "Microsoft.Performance" , "CA1819:PropertiesShouldNotReturnArrays"
 
Page view tracker