On 2005-09-18, Square eyes <mt****@ntlworld.com> wrote:
Hi,
I'm working on a program which scans .Net programs and gives hints and tips.
At the moment, it can spell check forms, reports and code and some hints
might include something like
str.Replace("Original", "New")
should read:
str=str.Replace("Original", "New")
Hopefully you get the idea. The question is, do you have any hints or tips
that aren't in .Net already?
The more generic the better.
First, I'd mention that FxCop does much of this, and if you don't know
about it you should definitely check it out. It has an extensible
architecture that makes it fairly easy to add custom rules like this,
and comes with a lot (too many, in fact) built-in rules.
A far as suggestions, the 2005 compiler handles a lot of the things that
drive me batty in 2003. Top of the list for me is not returning a value
from a function. Every time it hits me I curse out the compiler for a
minute.