fxcop
Include aspx in the static analysis (FxCop) of an MVC website
I am doing static analysis for a MVC v2 website build with .net 4. I have compiled the website and ran FxC开发者_如何学Pythonop on the resulting dll, but then I realized that the dll does not contain[详细]
2023-03-16 03:28 分类:问答How to get the method actually called by the callvirt IL instruction within FxCop
I\'m still trying to get my FxCop rule working. As part of this, i need to work out what methods a method calls. Previously i was using CallGraph.CallersFor() (doing it in reverse, which is my final[详细]
2023-03-15 02:38 分类:问答CA1026 -- Can this message be suppressed if an alternate, CLS Compliant method is supplied in place?
According to CA1026: Default parameters should not be 开发者_StackOverflowused I\'m not supposed to use default parameters.[详细]
2023-03-14 17:14 分类:问答Custom Rule in FxCop to only apply to methods called by particular type's method
I want to create an FxRule that applies a method, only if the method gets called from a specific class.[详细]
2023-03-14 15:09 分类:问答FXcop and Msbuild with CruiseControl.NET
I\'m new so please bear with me. I would like to know how to have MSbuild and FXcop run over night and to inform the users if they fail without finishing. I have been told they both can be integrated[详细]
2023-03-14 07:45 分类:问答Suppress CA1305 for DebugFormat InfoFormat and similar calls
I am using Common.Logging for .NET.When I use one of the XXXFormat functions like DebugFormat or InfoFormat, I get the CA1305 warning.It is easy enough to suppress by right clicking and either saying[详细]
2023-03-13 18:33 分类:问答Creating a Custom FXCop Rule based on CA2000 "Dispose Objects Before Losing Scope" that doesn't apply to System.Web.UI.Control objects
I\'m interested in creating a custom rule based on CA2000 \"Dispose Objects BeforeLosing Scope\" in my ASP.Net web project that doesn\'t apply to objects that are a descendant of System.Web.UI.Control[详细]
2023-03-10 03:00 分类:问答WPF Application: Microsoft.Maintainability#CA1506 Signature is not valid FxCop violation
I have a WPF solution, and when I run FxCop on it (well, when I build it with Code Analysis enabled, to be precise), with the rule set set to Microsoft All Rules (there are a few other rule sets that[详细]
2023-03-09 15:47 分类:问答FxCop: CA1709: Use acronym dictionary like in Resharper
is there a way to circumvent the FxCop\'s \"pascal acronym naming convention\" (which is .. controversial) enforcment in rule ca1709 by using an \'acronym dictionary\'?[详细]
2023-03-04 23:11 分类:问答Has anyone created custom StyleCop and FxCop rules for the Lance Hunt C# coding standards?
I\'ve just started work at a shop t开发者_如何学编程hat uses Lance Hunt\'s coding standards for C# development (see here) -- has anyone customised StyleCop and FxCop to work with these?StyleCop itself[详细]
2023-03-04 03:47 分类:问答