fxcop
fxcop fails because of references on obfuscated assemblies
I need to run fxcop on a project that refere开发者_开发技巧nces an obfuscated commercial assembly (from dotnetremoting.com). Fxcop tries to load the obfuscated assembly and fails...[详细]
2023-01-16 22:01 分类:问答How to check if Thread code runs in try-catch block
I would like to validate our code and check if every Thread that we execute runs in try catch block. A valid sample:[详细]
2023-01-16 06:12 分类:问答FxCop, exclude a rule from an assembly (but use it for the other assemblies)
I would like to exclude CA1822:MarkMembersAsStatic from the CoreTest assembly as the NUnit test methods cannot be converted to static methods as NUnit won´t execute them if I do. In the other assembl[详细]
2023-01-16 05:47 分类:问答How can I walk the method call to an Action, Func, or Delegate in introspector for a custom rule?
I\'m writing a custom rule to verify the constructor of any control type calls initialize component. But when I hit these 2 edge cases:[详细]
2023-01-15 17:43 分类:问答How do I suppress FxCop rule 'DoNotCatchGeneralExceptionTypes' with SupressMessage?
I\'ve got code that catches everything and logs it.I don\'t normally do this, but I\'m writing an HTTP handler and want to return an appropriate HTTP code.Anyway,I\'m putting the following at the top[详细]
2023-01-15 08:34 分类:问答Exclude complete namespace from FxCop code analysis?
Is it possible to exclude a complete namespace from all FxCop analysis while still analyzing the rest of the assembly using the SuppressMessageAttribute?[详细]
2023-01-14 05:11 分类:问答FxCop rule for string ==?
Can anyone point me to an fxcop rule for identifing \"string ==\" usage. For example: 开发者_开发技巧string s = \"abc\";[详细]
2023-01-13 21:24 分类:问答How to fail TFS build based on FXCop warning
We are currently using TFS 2008 for source control and continuous integration. We use FXCop to check for checking performance and security warnings. The Architect or senior developer runs FX Cop at t[详细]
2023-01-13 07:38 分类:问答How can I get the value of a parameter passed to a method in a custom rule in FxCop?
Due to certain reasons, in our ASP.NET web application, it is not recommended to use Response.Redirect(\"something\", True). It should be used with False for the endResponse parameter. We want to enfo[详细]
2023-01-12 04:59 分类:问答FxCop and Teamcity: Doesn't show code or code-lines
I am trying to use the FxCop build runner in Te开发者_Go百科amCity (5.1.2) and while I get the analysis output, the errors all show \'0\' for the code line link and I can\'t open anything in the IDE u[详细]
2023-01-11 21:11 分类:问答