Ignore Designer and Generated files

Nov 17, 2011 at 9:03 AM

Ok, I know that FxCop analyses the binary (.dll, .exe) file and not the source code.

But it maybe useful for the warnings output to ignore warnings from *.Designer.cs files?   (or telling MS fixing their issues there ;-))

e.g. https://skydrive.live.com/?cid=9015C1E219CDFADA&id=9015C1E219CDFADA%21606#cid=9015C1E219CDFADA&id=9015C1E219CDFADA%213427

Regards,
Harald-René Flasch (aka hfrmobile)

Coordinator
Nov 19, 2011 at 11:17 AM

Hi hfrmobile, thank you for your suggestion!!

That's for sure. It's good idea. I'll take it :)

Nov 19, 2011 at 11:21 AM
Edited Nov 19, 2011 at 11:26 AM

Perfect! This would be an additional benefit for lot of developers and will save time too! :)

Of course there should be two settings (compared to StyleCop's setting to ignore such files)

  • ignore designer files (*.Designer.cs).
  • generated files (*.g.cs, *.generated.cs, etc.)

Keep up the good work and have a nice weekend!