Search code examples
c#coding-stylefxcopstylecop

Has anyone created custom StyleCop and FxCop rules for the Lance Hunt C# coding standards?


I've just started work at a shop that uses Lance Hunt's coding standards for C# development (see here) -- has anyone customised StyleCop and FxCop to work with these?


Solution

  • StyleCop itself already contains a lot from this standard, except some controversial issues like tabs-vs-space indentation or this-vs-prefixed namings.

    For this exceptional things StyleCop+ can be used in additional to StyleCop. And it seems that this "pair" could probably implement the standard you mentioned well enough.

    Answering your question more specifically - I've created StyleCop+ which has some rules that might help implementing this standard, like forcing tab indentation or forcing prefixed field names.