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 trialled 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

Product Blog

Comments

blog comments powered by Disqus
Next Post
More on StyleCop  30 Jun 2008
Prior Post
Sequence Diagrams for Reflector  23 Jun 2008
Related Posts
Browsers and WSL  31 Mar 2024
Factory methods and functions  05 Mar 2023
Using Constructors  27 Feb 2023
An Inconvenient API  18 Feb 2023
Method Archetypes  11 Sep 2022
A bash puzzle, solved  02 Jul 2022
A bash puzzle  25 Jun 2022
Improve your troubleshooting by aggregating errors  11 Jun 2022
Improve your troubleshooting by wrapping errors  28 May 2022
Keep your promises  14 May 2022
Archives
June 2008
2008