Exclude complete namespace from FxCop code analysis?

Posted by hangy on Stack Overflow See other posts from Stack Overflow or by hangy
Published on 2008-12-09T15:26:28Z Indexed on 2010/03/08 21:36 UTC
Read the original article Hit count: 476

Filed under:

Is it possible to exclude a complete namespace from all FxCop analysis while still analyzing the rest of the assembly using the SuppressMessageAttribute?

In my current case, I have a bunch of classes generated by LINQ to SQL which cause a lot of FxCop issues, and obviously, I will not modify all of those to match FxCop standards, as a lot of those modifications would be gone if I re-generated the classes.

I know that FxCop has a project option to suppress analysis on generated code, but it does not seem to recognize the entity and context classes created by LINQ 2 SQL as generated code.

© Stack Overflow or respective owner

Related posts about fxcop