What tools are there available for static analysis against C# code? I know about FxCop and StyleCop. Are there others? I've run across NStatic before but it's been in development for what seems like forever - it's looking pretty slick from what little I've seen of it, so it would be nice if it would ever see the light of day.
Along these same lines (this is primarily my interest for static analysis), tools for testing code for multithreading issues (deadlocks, race conditions, etc.) also seem a bit scarce. Typemock Racer just popped up so I'll be looking at that. Anything beyond this?
Real-life opinions about tools you've used are appreciated.
Code violation detection Tools:
Fxcop, excellent tool by Microsoft. Check compliance with .net framework guidelines.
Edit October 2010: No longer available as a standalone download. It is now included in the Windows SDK and after installation can be found in Program Files\Microsoft SDKs\Windows\ [v7.1] \Bin\FXCop\FxCopSetup.exe
Edit February 2018: This functionality has now been integrated into Visual Studio 2012 and later as Code Analysis
Quality Metric Tools:
Checking Style Tools:
Duplication Detection:
General Refactoring tools
Have you seen CAT.NET?
From the blurb -
I used an early beta and it did seem to turn up a few things worth looking at.
Aside from the excellent list by madgnome, I would add a duplicate code detector that is based off the command line (but is free):
http://sourceforge.net/projects/duplo/
Klocwork has a static analysis tool for C#: http://www.klocwork.com
Axivion Bauhaus Suite is a static analysis tool that works with C# (as well as C, C++ and Java).
It provides the following capabilities:
These features can be run on a one-off basis or as part of a Continuous Integration process. Issues can be highlighted on a per project basis or per developer basis when the system is integrated with a source code control system.