-
I see a lot of code from other developers and every now and then you see some real gems. Today I was looking at a query to see if and how it could be optimised. One of the things I did was look at the query plan to see if indexes were used for various joins. One of the items in the plan made me look...
-
I was running into this just now and found a quick way to solve it, so I just posted it for future reference. I have an ASP.Net web application project in .Net 2.0 which was migrated from .Net 1.1 some time ago. I noticed that a few aspx pages did not have a designer.cs file. All controls on those pages...
-
In my current project, we have adopted Microsoft StyleCop as a tool to make sure everyone sticks to the same style of coding. One of the things we currently incorporate in our daily work is making sure our existing code conforms to the rules we agreed on. Today however, StyleCop refused to check a class...
-
I just received an email from Lutz Roeder informing the users of Reflector that he decided to explore new opportunities. He has reached an agreement with RedGate software to continue work on Reflector. From his email: I have reached an agreement to have Red Gate Software continue the development of ...
-
After using StyleCop for some weeks, there are some things I think that might be useful to others when they want to start using the tool. So here are some tips. Tip 1 - Also download the documentation The documentation for StyleCop is available as a separate download. It explains why the rules are introduced...
-
A new version of StyleCop was made available only a few days ago, so I downloaded it and installed it. One thing I had to correct after installation was the Settings.SourceAnalysis file. Because of the name change to StyleCop, the extension of the settings file was also changed. But after that, I was...
-
Just as a small update on the use of StyleCop . I disagreed with some of the rules, like having to use spaces rather than tabs. It's not really an annoying rule, the only thing about it is that you have to agree on using spaces or tabs and then stick to it. But still, I found out you can tune StyleCop...
-
If there's one thing that developers usually just cannot (or will not) agree to, then it's Coding standards/rules/guidelines or whatever name you want to give it. I posted a short item about a new tool from Microsoft that checks if your code matches the Microsoft guidelines and sure enough, I'm...
-
Or to be more specific, by Microsoft StyleCop . Now this may not be new to you, and that's very likely since StyleCop was announced in May of this year, but it was new to me. The tool checks your code for coding style and more specific, the Microsoft coding style. It was developed outside the VSTS...
-
Ever wondered if Microsoft use FxCop themselves, and which rules they have turned on? Well, the Visual Studio Code Analysis Team Blog gives you the answer. If you click this link , you will find a complete list of rules Microsoft use when analysing their code with FxCop.
-
The Visual Studio Code Analysis Team Blog announces the release of FxCop 1.36 Beta.This new version contains the following (taken from the original post ): 200+ bug fixes that reduce noise, missing analysis and rule crashes Support for analyzing anonymous methods and lambda expressions New option for...
-
I tried compiling my application just now and got this error message from the compiler: Preparing resources... Updating references... Performing main compilation... error CS0583: Internal Compiler Error (0xc0000005 at address 77FCD43E): likely culprit is 'PARSE'. An internal error has occurred...
-
The web application I'm working on logs errors in a log file using Log4Net. Nothing new, loads of applications do that. But I was surprised when I found the following error message: System.Data.SyntaxErrorException: Syntax error: Missing operand after 'grady' operator. Now what in heavens...
-
A while ago, one of my colleagues ( Chi Wai Man ) asked about my experience in code reviews, or as I would prefer to call it, code inspections. He is assigned to a project at one of our customers and, triggered by my " This thing is huge post " conducted a little review on the source code in that project...
-
I built a very small application which only shows information from a table in a standard DataGrid. Nothing special, other than I had to do it in VB.Net 1.1. I have just finished testing it, and am now running FxCop on the code to see what problems I still have to fix before checking it into source safe...