Globally disabling FxCop errors in TeamCity

Posted by Dave on Stack Overflow See other posts from Stack Overflow or by Dave
Published on 2010-03-30T04:34:29Z Indexed on 2010/03/30 4:43 UTC
Read the original article Hit count: 421

Ok, another FxCop question for today.

I've read the arguments regarding the IdentifiersShouldBeCasedCorrectly rule, and whether or not it should be "XML" or "Xml". Well, I'm an "XML" guy and I want to stay that way. Therefore, I do not want FxCop to correct me all of the time.

I have been using the SuppressMessage attribute only for specific cases. I have also used FxCop to mark a ton of errors and copied them as "module" level SuppressMessage statements into assemblyinfo.cs. That works pretty well.

However, now I really want to globally disable this annoying IdentifiersShouldBeCasedCorrectly rule. I'm using TeamCity 5.0.3, and am not using an FxCop project file (however, I could do this). I was hoping that I could pass a parameter to FxCopCmd to tell it to ignore this error, but it doesn't look that way from the documentation.

So... is there anything I can do short of creating an FxCop project file on the TeamCity build server and using it for the FxCop build runner?

© Stack Overflow or respective owner

Related posts about fxcop

Related posts about teamcity