We used FXCOP code analysis ("legacy") a lot in our solution. We are turning on many Microsoft rules, and also have written a large set of our own FXC ...
We used FXCOP code analysis ("legacy") a lot in our solution. We are turning on many Microsoft rules, and also have written a large set of our own FXC ...
I have an attribute named SearchableAttribute, which tags properties of classes. However, only properties of type string are allowed to be tagged with ...
I am trying to write a custom rule in FxCop to validate if my namespace starts with a particular word. I have tried something like below: But it is ...
I have implemented several "stock" Microsoft Code Analysis rules. However they were lacking in one area that they didn't have detection in a catch to ...
I want to use only custom rules on my code with SonarQube. I have just dll's of custom rules. How Can I do that? As per document I understood that I ...
I wrote some custom rules in C#, following the step-by-step instructions I've found on this site. When I try to run Code Analysis in visual-studio-201 ...
I'm trying to write a FxCop rule that matches classes that are adorned with the Serializable attribute, but it seems like the attribute is being ignor ...
Is there a reasonably simple way to get FxCop to check whether there is any usage of ViewBag, ViewData in MVC application. ...
Is there a reasonably simple way to get FxCop to check that all my assemblies declare a particular attribute value? I want to make sure everyone has c ...
I want to create an FxRule that applies a method, only if the method gets called from a specific class. NOTE: I don't want to just apply a rule to a ...