Within Visual Studio 2008, what would be the easiest way to prevent usage of certain functions from being allowed? Specifically, I'm trying to prevent other developers from using "old school" VB6-style commands such as:
- Len
- LCase
- UCase
- Instr
- InstrRev
- Trim
- Right
- Left
- Mid
etc., etc., etc.... The list goes on and on.
I can usually catch these during manual code review, but sometimes things will slip by. Also, it doesn't do anything about old code that doesn't typically get seen.
I know education is probably the best tool, in the long run, but it would be nice to have something to supplement/enforce that.