fxcop
Any alternatives for code analysis in .net apart from FxCop?
I was wondering if there are any alternatives for code analysis. I suppose one can create a code analyser from scratch though this is a te开发者_运维技巧dious work and I am not sure it worths it after[详细]
2023-03-30 01:52 分类:问答Do I use Nested Classes to prevent class instantiation or...?
I have read several articles on when to use nested classes, but none that I\'ve found address my specific question.[详细]
2023-03-29 16:26 分类:问答Avoiding code analysis CA2000 warning with chained constructors?
The normal pattern for avoiding the CA2000 warning about non-disposed locals is to use a temp variable that gets disposed if anything goes wrong, like:[详细]
2023-03-21 04:35 分类:问答CA1709 - Should we ignore this and use Db or DB?
I know it sounds silly, but in regards to CA1709, should 开发者_开发问答we ignore this error and just do what Microsoft did (which is use Db as the acronym for Database)?[详细]
2023-03-20 16:00 分类:问答Can you turn off conditional compilation symbols from msbuild.exe command line?
We have CODE_ANALYSIS defined in our C# components so that FxCop analyzes them when we build them on our development boxes. I would like to have FxCop turned off when it runs through our build system.[详细]
2023-03-19 22:39 分类:问答FxCop: CA1033 - Microsoft's implementation of a ReadOnlyCollection violates this?
If you look at the code for a read-only collection it does not have an \"Add\" method, but instead defines the ICollection<T>.Add(T Value) method (explicit interface implementation).[详细]
2023-03-19 06:50 分类:问答How to write a script to analyse C# code using FxCop?
I am trying to write a script to analyse C# code (batch script) 开发者_如何学编程using FxCop and integrate scripts into Hudson to automate the task. Can anyone can help? Even help to get me halfway is[详细]
2023-03-18 04:28 分类:问答FxCop: Returning Matrix as Property (C#)
I have a static class \'Defaults\' which shall hold default matrices that are forwarded to an interface that asks for double[][] in the end. So far I simply put static properties in this class that re[详细]
2023-03-17 21:46 分类:问答Run code analysis rule set with FxCop 10 GUI
I\'m u开发者_JAVA百科sing code analysis in .NET 4, where I have a custom rule set included in the project file for my project.[详细]
2023-03-17 04:48 分类:问答FxCop, Finding "If-Else" statements
I am using FxCop and codedthe following: public override void VisitBinaryExpression(BinaryExpression binaryExpression)[详细]
2023-03-16 06:06 分类:问答