code analyser requirements

what does code analyser can do...

check for
1. Nested looping
2. Variables declared and not used
3. If then without end if

and what else we can consider while creating code analyzer
 
shragiAsked:
Who is Participating?
 
Asim NazirCommented:
Consider following:

spacing b/w lines of code

option to consider warnings as error

alerting try catch blocks that do nothing after catching exception

max length/lines of code of a method

disposing global objects

disposing desktop app forms instead of closing


0
 
Asim NazirCommented:
Consider following:

spacing b/w lines of code

option to consider warnings as error

alerting try catch blocks that do nothing after catching exception

max length/lines of code of a method

disposing global objects

disposing desktop app forms instead of closing


0
 
anarki_jimbelCommented:
It is hard to list here everything that can be considered. E.g., you may look for e.f. FxCop rules etc.
You may look at the following links:

http://msdn.microsoft.com/en-us/library/3z0aeatx(v=VS.80).aspx
http://blogs.msdn.com/b/codeanalysis/archive/2007/08/09/what-rules-do-microsoft-have-turned-on-internally.aspx

The links may give you some idea. And it's not quite clear what's required for you...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.