Rule SA1015 - should a close bracket also be allowed as follow-on?

May 14, 2012 at 7:56 AM
Edited May 14, 2012 at 8:01 AM

Rule SA1015 states "A closing generic bracket should be followed by an open paranthesis, an end of line or a single whitespace (but not whitespace and an open paranthesis)."

In a routine like the one below surely a close paranthesis is also valid?

private void ShowMultiChoiceSelector(object options)
    var multiXYZ = new MultiXYZ((List<MultiXYZitem>)options);

I suspect that this problem started with the 4.7.20 release as the code with 4.7.19  did not have this warning.

May 14, 2012 at 12:13 PM

See bug 7247. Already fixed in 4.7.21

May 14, 2012 at 2:35 PM

Thank you. I look forward to when 4.7.21 completes regression testing and can be released.

May 15, 2012 at 10:23 PM

4.7.21 available now

May 15, 2012 at 11:31 PM

I've identified 3 more false positives for SA1015 in v4.7.21 - see 7247.

May 15, 2012 at 11:52 PM

Just fixed those 3 now. 4.7.22 has the fixes for that. Available tomorrow.

May 16, 2012 at 6:53 AM


I have installed 4.7.22 and the false positive has been resolved.

Thank you to you and your team.