Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Correcting spelling rule in StyleCop

Tags:

stylecop

StyleCop rule SA1642 insists that my documentation header for constructors must begin with 'Initializes a new instance of...'.

Whereas I agree with the rule itself, I just can't bring myself to accept StyleCop enforcing spellings I consider ugly. It's 'initialises' with an 's'!!!

Is it possible to modify the expected text, or must I simply disable a sensible rule?

like image 395
David Avatar asked Jul 21 '11 12:07

David


1 Answers

In the latest stylecop settings you can set the "Culture for analysis" to en-GB in the options tab and it will use British spelling instead of American.

like image 65
Stephen Drew Avatar answered Sep 28 '22 07:09

Stephen Drew