For you .NET developers, be sure to check out FxCop
([http://www.gotdotnet.com/team/FxCop/]). It is a simple program which
analyzes your .NET assemblies against Microsoft’s recommended
programming practices. It features a multitude of plug-ins so you can
check your program against only the standards you want.
Give it a try, it can really help clean and optimize your code.