This project is read-only.

SA1015 warnings with SA1008 off

May 16, 2012 at 7:56 PM

We turn off SA1008 since our style has a space between the method name and the opening parenthesis of the parameter list. Up through 4.7.17, disabling this rule worked for us and removed all warnings related to that space. With 4.7.22, we are getting SA1015 warnings due to that space (for generic functions). The following code demonstrates the scenario:

public static string ListToString<T> (IEnumerable<T> tokens, string delimiter) {
Is SA1015 supposed to be triggered in this scenario (SA1008 off)? Is this incorrect behavior; can 1008 trump 1015? Or do we need to just turn this rule off now?

May 16, 2012 at 8:57 PM

The behaviour is now correct. You'd need to Suppress instances of the issue or turn the rule off.

May 16, 2012 at 9:54 PM

Thanks for the quick reply. Rule is off.