473,405 Members | 2,373 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Hints and tips required for a lint program

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
3 1379
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

32
by: Sticks | last post by:
i'm new to python and i was wondering what editors people prefer to use and why.
2
by: C5Guy | last post by:
O wise one's of the .Net World, Can some one give me a few hints/tips on setting up a properties configuration page. What I am trying to achieve is the same sort of thing that VS.Net shows on...
33
by: Greg Roberts | last post by:
We have a large code base, mainly C but with some C++ which we wish to check for existing issues in an effort to be proactive. I have downloaded the open source GLINT program but am having big...
1
by: Tom | last post by:
I've been using Gimpels PC-Lint static analysis tool (which seems to be extremely good value for money) but I've come up against a couple of problems, although the second is more of a wondering......
2
by: Panchi51 | last post by:
Hi, Below is a collection of tips/tricks/caveats for LP64 c coding, full text is at http://www.cs.albany.edu/~mosh/Text/c-ref.txt. Hope it helps, corrections welkome. --...
2
by: Rahul | last post by:
Hi, I have a little program as follows : =================== STARTS HERE ================ #include <stdio.h> void f (unsigned long); int main() {
4
by: Roman Mashak | last post by:
Hello, All! I often come across the following statements in different source code: #ifndef lint char copyright = "@(#) Copyright (C) 2005 bla-bla-bla\n"; #endif #ifndef lint
28
by: Yuri CHUANG | last post by:
"No newline at the end of your output" is really a problem? I've never learned that before. So I desire to know some tips about writting a program perfectly.Can anyone give me some tips which are...
15
by: Pat | last post by:
I've been searching for a good multi-module lint checker for Python and I haven't found one yet. Pylint does a decent job at checking for errors only within a single module. Here's one of my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.