Question about SA1303 rule.

Oct 18, 2011 at 3:04 PM

Hello.

In StyleCop, there is a rule: 'SA1303 ConstFieldNamesMustBeginWithUpperCaseLetter'. Suppose I want this rule be disabled for local fields, e.g:

public void func() {
      const string str = "some string";
      ....
}

Other cases should be considered as violations.

Is there a way to (re)configure the rule without coding?

Thanks.

Developer
Oct 18, 2011 at 7:35 PM

There is a plug-in, named StyleCop+, which supports flexible naming rules.

Best regards,
Oleg Shuruev