fxcop
Is there a way to identify unused or stale FxCop message suppressions?
We use FxCop\'s global suppressions to suppress rule violations found in old code.By old code I mean code that was written sometimes years before we turned on code analysis.We fix violations in new co[详细]
2023-02-05 03:36 分类:问答Strange Code Analysis Problem About TFS 2010 Build
I have got strange problems in the last few days. Today\'s strange problem is about Code Analysis and TFS 2010 Builds.[详细]
2023-02-04 13:32 分类:问答Why am I getting CA2000 with a private member IDisposable inside my IDisposable class?
I have a class that implements IDisposable because it has a private member field \"foo\" that is IDisposable (which is initialized in the constructor).I am unexpectedly getting a CA2000 Code Analysis[详细]
2023-02-04 10:30 分类:问答how to you code a AvoidCallingProblematicMethods exception to be picked up in FxCop?
I am testing FxCop automation and want to validate it is screening and catching certain rules. I want to make a dll that will trigger the AvoidCallingProblematicMethods error in FxCop.[详细]
2023-02-03 12:54 分类:问答how do i code a RemoveCallsToGCKeepAlive exception to be picked up in FxCop?
I am testing FxCop automation and want to validate it is screening and catching certain r开发者_如何学Goules. I want to make a dll that will trigger the RemoveCallsToGCKeepAlive error in FxCop.[详细]
2023-02-03 12:54 分类:问答How to fix warning CA2226 in a C++/CLI application?
I have a C++/CLI class definition where I\'m trying to get Equality testing to be Value based rahter than Reference (similar to the behavior of String).The following definitions work:[详细]
2023-02-02 21:31 分类:问答Suppressing Static Code Analysis Warning CA1806 for TryParse calls
I was wondering what people\'s thoughts were on the CA1806 (DoNotIgnoreMethodResults)Static Code Analysis warning when using FxCop.[详细]
2023-02-02 11:30 分类:问答Link to Microsoft coding standard/ best practices documentation?
can anyone post the link to the Microsoft development best practices and guidelines? i have searched high and low for this and cant seem to find the resource i am looking for. In particular i am look[详细]
2023-01-26 23:22 分类:问答Is it possible to suppress all naming errors from FxCop for a specific class?
Due to reasons beyond my control (them being a DB of another system whose members follow different naming conventions) I have to make a class with a dozen of members that each fail 3 to 4 naming rules[详细]
2023-01-26 14:57 分类:问答Which is the most important code analysis rule and why? [closed]
开发者_如何学Go As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely so[详细]
2023-01-23 08:46 分类:问答