StyleCop for C# Coding Standards

StyleCop, newly released by Microsoft, is a tool for C# developers.

In some ways similar to stable-mate, fxCop, StyleCop analyses your C# source code for compliance against a set of rules that embody Microsoft's own style conventions for C# code.

Yesterday I trialed StyleCop against a representative sample of my own code, with interesting results.

For me, like many developers, coding styles are extremely personal. The standards enforced by StyleCop aren't entirely compatible with my own - but there is a substantial overlap.

I figure that I'll disable a few of the most obnoxious rules, and adapt to work within the bounds of the rest of them.

Overall, I think StyleCop is extremely worthwhile, it will certainly be finding a place in my build scripts from now on. Recommended.

Some useful links ...

Home page on MSDN Code Gallery - http://code.msdn.microsoft.com/sourceanalysis

Product Blog - http://blogs.msdn.com/sourceanalysis/