<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://code.msdn.microsoft.com/rss.xsl"?><rss version="2.0"><channel><title>Code Analysis</title><link>http://code.msdn.microsoft.com/codeanalysis/Project/ProjectRss.aspx</link><description>Code Analysis tools &amp;#40;including FxCop&amp;#41;, samples and power toys.</description><item><title>NEW POST: Laziness</title><link>http://code.msdn.microsoft.com/codeanalysis/Thread/View.aspx?ThreadId=2202</link><description>&lt;div class="wikidoc"&gt;
Wow... is this tool actually used by anyone in Microsoft? All the rules point to a site that has been shut down long ago (gotdotnet.com). For extra fun, have it analyze itself and marvel at the number of issues it finds (let's not forget the null reference exceptions that occur during the analyzing process).&lt;br /&gt; &lt;br /&gt;This looks worse than the MVC sample fiasco you guys had a while ago.&lt;br /&gt;
&lt;/div&gt;</description><author>mdpopescu</author><pubDate>Sat, 29 Aug 2009 04:25:10 GMT</pubDate><guid isPermaLink="false">NEW POST: Laziness 20090829A</guid></item><item><title>NEW POST: Laziness</title><link>http://code.msdn.microsoft.com/codeanalysis/Thread/View.aspx?ThreadId=2202</link><description>&lt;div class="wikidoc"&gt;
I sincerely hope that whoever wrote the installer was not responsible for the application itself. There are 3 options when installing the application - typical, complete and custom - and they all install the same thing. This is a bad first impression.&lt;br /&gt;
&lt;/div&gt;</description><author>mdpopescu</author><pubDate>Sat, 29 Aug 2009 04:15:39 GMT</pubDate><guid isPermaLink="false">NEW POST: Laziness 20090829A</guid></item><item><title>NEW POST: FxCop 1.36 Bugs &amp; Stability</title><link>http://code.msdn.microsoft.com/codeanalysis/Thread/View.aspx?ThreadId=1963</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;@sfun28&lt;/b&gt;: ...  &lt;i&gt;forgets when I've excluded warnings&lt;/i&gt; ...&lt;br /&gt; &lt;br /&gt;Something similar happened to me today. But it this is no &lt;b&gt;StyleCop&lt;/b&gt; bug! The missing ignored warning occurs e.g. if you rename a source file so StyleCop can't know it ;-) You'll get a message &amp;quot;Could not import all messages&amp;quot;. It's correct in my situation.&lt;br /&gt;
&lt;/div&gt;</description><author>hfrmobile</author><pubDate>Sun, 12 Jul 2009 20:25:57 GMT</pubDate><guid isPermaLink="false">NEW POST: FxCop 1.36 Bugs &amp; Stability 20090712P</guid></item><item><title>NEW POST: FxCop 1.36 Bugs &amp; Stability</title><link>http://code.msdn.microsoft.com/codeanalysis/Thread/View.aspx?ThreadId=1963</link><description>&lt;div class="wikidoc"&gt;
I am using &lt;b&gt;FxCop 1.36&lt;/b&gt; for a while and have no problems with it. It also does not &amp;quot;forget&amp;quot; settings. They're stored in &lt;b&gt;YourName.FxCop&lt;/b&gt; files (XML). Maybe there is a problem with your Source control? ;-)&lt;br /&gt;
&lt;/div&gt;</description><author>hfrmobile</author><pubDate>Fri, 10 Jul 2009 11:40:30 GMT</pubDate><guid isPermaLink="false">NEW POST: FxCop 1.36 Bugs &amp; Stability 20090710A</guid></item><item><title>NEW POST: CA1811</title><link>http://code.msdn.microsoft.com/codeanalysis/Thread/View.aspx?ThreadId=2007</link><description>&lt;div class="wikidoc"&gt;
RuleFile : Performance Rules  (String)&lt;br /&gt;Info: &amp;quot;There is uncalled code that is not externally visible and is not a known runtime entry point. &lt;b&gt;If this violation fires in error, please send a problem report to the                    Visual Studio Code Analysis team.&amp;quot;&lt;/b&gt;&lt;br /&gt; &lt;br /&gt;// ReSharper disable UnusedMember.Local&lt;br /&gt;[Something(&amp;quot;Test&amp;quot;)]&lt;br /&gt;private string Test&lt;br /&gt;{&lt;br /&gt;  get { ... }&lt;br /&gt;  set { ... }&lt;br /&gt;}&lt;br /&gt;// ReSharper restore UnusedMember.Local&lt;br /&gt; &lt;br /&gt;In this case this private property (or protected) is called/used via Reflection.&lt;br /&gt; &lt;br /&gt;What is the best or suggested solution for such cases?&lt;br /&gt;
&lt;/div&gt;</description><author>hfrmobile</author><pubDate>Fri, 10 Jul 2009 11:15:13 GMT</pubDate><guid isPermaLink="false">NEW POST: CA1811 20090710A</guid></item><item><title>NEW POST: FxCop 1.36 Bugs &amp; Stability</title><link>http://code.msdn.microsoft.com/codeanalysis/Thread/View.aspx?ThreadId=1963</link><description>&lt;div class="wikidoc"&gt;
Folks,&lt;br /&gt; &lt;br /&gt;just a general question - is there any upcoming bug fixes/stability work or a new release?  &lt;br /&gt; &lt;br /&gt;I find that FxCop often forgets when I've excluded warnings and I need to re-type my comments and exclude again.   Also, it crashes more often than I'd like.&lt;br /&gt;A few times I've gotten into a wierd state where I've had to completely rebuild my project file. Overall I find the tool to be temperamental and unreliable.  However, it provides HUGE value.  I just wish it were more stable.&lt;br /&gt;
&lt;/div&gt;</description><author>sfun28</author><pubDate>Wed, 01 Jul 2009 00:33:57 GMT</pubDate><guid isPermaLink="false">NEW POST: FxCop 1.36 Bugs &amp; Stability 20090701A</guid></item><item><title>NEW POST: 64 bit FXCOP bits</title><link>http://code.msdn.microsoft.com/codeanalysis/Thread/View.aspx?ThreadId=1816</link><description>&lt;div class="wikidoc"&gt;
I need to test CAT.NET 64 bit binaries as a rule to FXCOP 64 bit binaries.&lt;br /&gt;
&lt;/div&gt;</description><author>syedab</author><pubDate>Tue, 16 Jun 2009 13:18:52 GMT</pubDate><guid isPermaLink="false">NEW POST: 64 bit FXCOP bits 20090616P</guid></item><item><title>NEW POST: Open With setting</title><link>http://code.msdn.microsoft.com/codeanalysis/Thread/View.aspx?ThreadId=1839</link><description>&lt;div class="wikidoc"&gt;
An option which specifies which editor is used to open .cs files would be very nice (e.g. Location: file:///C:/Development/Projects/MyProject/trunk/Interfaces/Interfaces.Stub/SoapExceptionHelper.cs&amp;lt;95&amp;gt;  (String))&lt;br /&gt; &lt;br /&gt;I am developing on VS.NET 2005 and VS.NET 2008 projects and so both Visual Studios are installed on my machine. When I work with VS.NET 2005 and click on a .cs file in FxCop VS.NET 2008 will open ...&lt;br /&gt; &lt;br /&gt;I'll prefer an neutral editor like Notepad++ for that.&lt;br /&gt;
&lt;/div&gt;</description><author>hfrmobile</author><pubDate>Fri, 05 Jun 2009 07:52:18 GMT</pubDate><guid isPermaLink="false">NEW POST: Open With setting 20090605A</guid></item><item><title>NEW POST: 64 bit FXCOP bits</title><link>http://code.msdn.microsoft.com/codeanalysis/Thread/View.aspx?ThreadId=1816</link><description>&lt;div class="wikidoc"&gt;
Why do you need that? FxCop is a .NET application ...&lt;br /&gt;
&lt;/div&gt;</description><author>hfrmobile</author><pubDate>Tue, 02 Jun 2009 07:17:41 GMT</pubDate><guid isPermaLink="false">NEW POST: 64 bit FXCOP bits 20090602A</guid></item><item><title>NEW POST: Compact Framework</title><link>http://code.msdn.microsoft.com/codeanalysis/Thread/View.aspx?ThreadId=1705</link><description>&lt;div class="wikidoc"&gt;
I used FxCop with a .NET CF 1.0 (!) assembly and it worked.&lt;br /&gt; &lt;br /&gt;Do you get an error message or what is the problem?&lt;br /&gt; &lt;br /&gt;Info: &amp;quot;Required Framework: .NET Framework 2.0&amp;quot; means that that framework must be installed on your machine to execute the FxCop application. But it is also able to analyze .NET CF assemblies.&lt;br /&gt; &lt;br /&gt;hth, hfrmobile &lt;br /&gt;
&lt;/div&gt;</description><author>hfrmobile</author><pubDate>Tue, 02 Jun 2009 07:16:18 GMT</pubDate><guid isPermaLink="false">NEW POST: Compact Framework 20090602A</guid></item><item><title>NEW POST: 64 bit FXCOP bits</title><link>http://code.msdn.microsoft.com/codeanalysis/Thread/View.aspx?ThreadId=1816</link><description>&lt;div class="wikidoc"&gt;
Do we have 64 bit FXCOP bits?&lt;br /&gt;
&lt;/div&gt;</description><author>syedab</author><pubDate>Mon, 01 Jun 2009 11:54:13 GMT</pubDate><guid isPermaLink="false">NEW POST: 64 bit FXCOP bits 20090601A</guid></item><item><title>NEW POST: Compact Framework</title><link>http://code.msdn.microsoft.com/codeanalysis/Thread/View.aspx?ThreadId=1705</link><description>&lt;div class="wikidoc"&gt;
Sorry to ask again, but does anyone have an answer to this question?&lt;br /&gt;
&lt;/div&gt;</description><author>Bee</author><pubDate>Mon, 18 May 2009 08:07:42 GMT</pubDate><guid isPermaLink="false">NEW POST: Compact Framework 20090518A</guid></item><item><title>NEW POST: Compact Framework</title><link>http://code.msdn.microsoft.com/codeanalysis/Thread/View.aspx?ThreadId=1705</link><description>&lt;div class="wikidoc"&gt;
Can FxCop be used for .NET Compact Framework.&lt;br /&gt; &lt;br /&gt;The following page suggests not:-&lt;br /&gt; &lt;br /&gt;&lt;a href="http://code.msdn.microsoft.com/codeanalysis/Release/ProjectReleases.aspx?ReleaseId=553" class="externalLink"&gt;http://code.msdn.microsoft.com/codeanalysis/Release/ProjectReleases.aspx?ReleaseId=553&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;Supported Operating Systems: Windows 2000; Windows XP; Windows Vista; Windows 2000 Server; Windows Server 2003&lt;br /&gt;Required Framework: .NET Framework 2.0&lt;br /&gt; &lt;br /&gt;Please could I get some clarification.&lt;br /&gt; &lt;br /&gt;
&lt;/div&gt;</description><author>Bee</author><pubDate>Mon, 11 May 2009 10:56:32 GMT</pubDate><guid isPermaLink="false">NEW POST: Compact Framework 20090511A</guid></item><item><title>NEW POST: Other tools?</title><link>http://code.msdn.microsoft.com/codeanalysis/Thread/View.aspx?ThreadId=106</link><description>&lt;div class="wikidoc"&gt;
In our organization, we have to maintain an external document describing each of our standards, along with rationale behind them. It would be nice if we could just run a report from FxCop that shows our current configuration in a human readable format, along with rationale for each standard. We would like to be able to maintain the rationale, but if default rationale were available for each configuration option, that would be helpful, too. This way, we wouldn't have to maintain our standards in 2 places and manually synchronize them.&lt;br /&gt;
&lt;/div&gt;</description><author>dwright5816</author><pubDate>Mon, 09 Mar 2009 19:12:37 GMT</pubDate><guid isPermaLink="false">NEW POST: Other tools? 20090309P</guid></item><item><title>NEW POST: Can I find assignments using FxCop</title><link>http://code.msdn.microsoft.com/codeanalysis/Thread/View.aspx?ThreadId=1279</link><description>&lt;div class="wikidoc"&gt;
Sorry if I'm writing in wrong discussion but I have one question.&lt;br /&gt;I'm writing custom FxCop rule and I'd like to find all the statements like this:&lt;br /&gt;object a;&lt;br /&gt;&lt;b&gt;a=null;&lt;/b&gt;&lt;br /&gt;I'd want to find all statements where variable or field is assigned to null. How can I do this? Am I right, that I have to check in VisitAssignmentStatement method? But how can I find that second operand is null?&lt;br /&gt; &lt;br /&gt;Thank you.&lt;br /&gt;
&lt;/div&gt;</description><author>halkar</author><pubDate>Thu, 05 Feb 2009 13:33:08 GMT</pubDate><guid isPermaLink="false">NEW POST: Can I find assignments using FxCop 20090205P</guid></item><item><title>NEW POST: Rule to detect dead code</title><link>http://code.msdn.microsoft.com/codeanalysis/Thread/View.aspx?ThreadId=1180</link><description>&lt;div class="wikidoc"&gt;
Hello, &lt;br /&gt; &lt;br /&gt;I am trying to program a rule into a DLL to detect dead code.&lt;br /&gt; &lt;br /&gt;I can't get out with it.&lt;br /&gt; &lt;br /&gt;I have a solution with 5 projects. I'd like to programm a rule that list all the methods and properties, even if public, that are never called.&lt;br /&gt; &lt;br /&gt;Can you help me?&lt;br /&gt; &lt;br /&gt;Thanks.&lt;br /&gt; &lt;br /&gt;Best regards.&lt;br /&gt; &lt;br /&gt;MS&lt;br /&gt;
&lt;/div&gt;</description><author>joujoukinder</author><pubDate>Thu, 15 Jan 2009 16:32:55 GMT</pubDate><guid isPermaLink="false">NEW POST: Rule to detect dead code 20090115P</guid></item><item><title>NEW POST: False positives in CA1601 and CA1047</title><link>http://code.msdn.microsoft.com/codeanalysis/Thread/View.aspx?ThreadId=1026</link><description>&lt;div class="wikidoc"&gt;
If you define a class with a virtual or abstract method with generic parameters with restrictions, e.g.&lt;br /&gt; &lt;br /&gt;abstract class C&lt;br /&gt;{&lt;br /&gt;    abstract T M&amp;lt;T, U&amp;gt;() where U : IEnumerable&amp;lt;T&amp;gt;&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;then fxCop raises error CA1601 on any method overriding this, and CA1407 too if the overriding method is in a sealed class, and the method is protected.&lt;br /&gt;
&lt;/div&gt;</description><author>OliverHallam</author><pubDate>Mon, 01 Dec 2008 17:49:42 GMT</pubDate><guid isPermaLink="false">NEW POST: False positives in CA1601 and CA1047 20081201P</guid></item><item><title>NEW POST: Check namespace and methods type</title><link>http://code.msdn.microsoft.com/codeanalysis/Thread/View.aspx?ThreadId=939</link><description>&lt;div class="wikidoc"&gt;
Hi,&lt;br /&gt; &lt;br /&gt;I'm making my own Fxcop Rules.&lt;br /&gt;I'm trying to check the namespace to see if I'm on the good class and after that, I want to ckeck if the methods are Statics or not.&lt;br /&gt;I began the code but I'm blocked, because I think that my methods that check the namespace is called after the methods that ckecks if the methods are statics or not in my class.&lt;br /&gt; &lt;br /&gt;Here is my Code : &lt;br /&gt; &lt;br /&gt;public override ProblemCollection Check(string namespaceName, TypeNodeCollection types) {&lt;br /&gt;            &lt;br /&gt;            try {&lt;br /&gt; &lt;br /&gt;                this._isBllNameSpace = false;&lt;br /&gt;                if (namespaceName.ToUpper().IndexOf(Constants.BLL_NAME) &amp;gt; 0) {&lt;br /&gt;                    this._isBllNameSpace = true;&lt;br /&gt;                }&lt;br /&gt;            } catch (Exception e) {&lt;br /&gt;                return null;&lt;br /&gt;            }&lt;br /&gt;            &lt;br /&gt;            return null;&lt;br /&gt;        }&lt;br /&gt; &lt;br /&gt;        public override ProblemCollection Check(Member member) {&lt;br /&gt;            bool failed = false;&lt;br /&gt; &lt;br /&gt;            try {&lt;br /&gt; &lt;br /&gt;                Method method = member as Method;&lt;br /&gt; &lt;br /&gt;                &lt;br /&gt;                if (method == null)&lt;br /&gt;                    return base.Check(member);&lt;br /&gt; &lt;br /&gt;                if (this._isBllNameSpace) {&lt;br /&gt;                    //On check si le 'member' test&amp;#233; est une m&amp;#233;thode                    &lt;br /&gt;                    if (member.NodeType == NodeType.Method) {&lt;br /&gt;                        failed = !method.IsStatic;&lt;br /&gt;                    }&lt;br /&gt;                    failed = true;&lt;br /&gt;                }&lt;br /&gt; &lt;br /&gt;                if (failed) {&lt;br /&gt;                    base.Problems.Add(new Problem(base.GetResolution(&amp;quot;This method is not STATIC&amp;quot;), method.Name));&lt;br /&gt;                    return Problems;&lt;br /&gt;                } else {&lt;br /&gt;                    return null;&lt;br /&gt;                }&lt;br /&gt; &lt;br /&gt;            } catch (Exception e) {&lt;br /&gt;                return null;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;Can somebody help me to resolve my problem ? &lt;br /&gt; &lt;br /&gt;First : check the namespace to see if we are in the good class&lt;br /&gt;Then: check the methods to see if they are statics&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;Thanks for your help&lt;br /&gt;
&lt;/div&gt;</description><author>Leviz</author><pubDate>Wed, 12 Nov 2008 19:21:27 GMT</pubDate><guid isPermaLink="false">NEW POST: Check namespace and methods type 20081112P</guid></item><item><title>NEW POST: return value (error code) for FxCopCmd.exe</title><link>http://code.msdn.microsoft.com/codeanalysis/Thread/View.aspx?ThreadId=936</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;FxCopCmd.exe&lt;/b&gt; should return a value &lt;b&gt;!= 0&lt;/b&gt; (&lt;b&gt;%errorlevel%&lt;/b&gt;) when one or more rules failed.&lt;br /&gt;This makes it easier to determine if all rules are OK or not (e.g. for automated builds like MSBuild, NAnt). If not all rules are OK the build should fail.&lt;br /&gt; &lt;br /&gt;&lt;u&gt;Workaround:&lt;/u&gt; Just test if the output-file exists or not (have to use /o: switch)&lt;br /&gt;
&lt;/div&gt;</description><author>hfrmobile</author><pubDate>Wed, 12 Nov 2008 18:13:17 GMT</pubDate><guid isPermaLink="false">NEW POST: return value (error code) for FxCopCmd.exe 20081112P</guid></item><item><title>NEW POST: Command line support</title><link>http://code.msdn.microsoft.com/codeanalysis/Thread/View.aspx?ThreadId=902</link><description>&lt;div class="wikidoc"&gt;
Thx, that's it (http://msdn.microsoft.com/en-us/library/bb429474(VS.80).aspx)&lt;br /&gt; &lt;br /&gt;--hfr&lt;br /&gt;
&lt;/div&gt;</description><author>hfrmobile</author><pubDate>Wed, 12 Nov 2008 16:50:20 GMT</pubDate><guid isPermaLink="false">NEW POST: Command line support 20081112P</guid></item></channel></rss>