SA1013 misfires for object initializer in interpolated string #3461
Closed
Description
Code like
var x = 1;
var y = 2;
var z = 3;
v
var formatedString = $"Something {new { x, y, z }}";
triggers "SA1013 Closing brace should be followed by a space", but adding space after the }
doesn't look right and also triggers "SA1013 Closing brace should not be preceded by a space" and the description for SA1013 states
A closing brace should always be followed by a single space, unless it is the last character on the line, or unless it is followed by a closing parenthesis, a comma, or a semicolon.
StyleCop Version: 1.2.0-beta.406