Once you have your objectives and metrics planned, you could use these tools (which I've used on a past project):
- Simian (http://www.redhillconsulting.com.au/products/simian/), to detect and prevent code duplication.
- RSM (http://msquaredtechnologies.com/m2rsm/rsm_demo.php) to detect code complexity and meet the requirements for function size and cyclomatic complexity
- NCover (http://www.ncover.com/) to indicate what areas of code are being exercised by unit tests, ie. your unit test "coverage"
- FxCop (http://msdn.microsoft.com/en-us/library/bb429476.aspx) to ensure the code meets Microsoft .NET Framework design guidelines
what about resharper? (http://www.jetbrains.com/resharper/)
ReplyDeleteCode analysis add-in to Visual Studio for C#; version 4.0 (not released yet and no known date on the web site) advertises to work with C# 3, Visual Studio 2008 and WPF. Similar to RSM, but it checks and analyses code on the fly as you are typing it in supplying suggestions for conforming to the better coding guidelines.
Additionally, there are other features such as:
configurable code style and the ability to propagate the style to other developer machines.
ability to block select code and reformat according to the style preferences
For code duplication detect instead of simien, I have used this free tool: PMD Copy paste detection (http://pmd.sourceforge.net/cpd.html)
ReplyDelete