Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 701
Jeremy McGee Avatar asked Jan 29 '26 00:01

Jeremy McGee


1 Answers

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.

like image 68
Oleg Shuruev Avatar answered Jan 30 '26 14:01

Oleg Shuruev