By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,285 Members | 1,659 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,285 IT Pros & Developers. It's quick & easy.

Hints and tips required for a lint program

P: n/a
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.

Thanks in advance.
Michael
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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.

Nov 21 '05 #2

P: n/a
HI

I think it should be more of huge rules stored in database. Example
you can probably create language tables and keywords tables and what to
replace. So you can just read from the database depending on language
selected and run through the code.

The best thing is after that a simple dataentry guys has to make
entries for what keyword what should be used.

Good database design with rule stuff

Regards
Shiv
C#, VB.NET , SQL SERVER , UML , DESIGN Patterns Interview question book
http://www.geocities.com/dotnetinterviews/

Nov 21 '05 #3

P: n/a
Thanks for that - I had no idea about FxCop and the last thing I want is to
start replicating a free Microsoft program. I think I'm safe enough though
and have plenty of other features I'm looking to implement that should make
it original and useful.

Thanks
Michael
Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.