You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the following code snippet, and version 1.2.0-beta.556:
_=$"abc {"some long C# expression here, after which I want to indent"} def";
SA1013 is reported on }. It misidentifies this as a closing brace of a block statement. Its own definition should even be allowing this:
A closing brace should always be preceded by a single space, unless it is the first character on the line.
The text was updated successfully, but these errors were encountered:
jnm2
changed the title
False positives for SA1013 and SA1513 with newlines inside interpolations
False positive for SA1013 with newlines inside interpolations
Nov 10, 2024
C# 11+ allows newlines inside interpolations (https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-11#newlines-in-string-interpolations).
With the following code snippet, and version
1.2.0-beta.556
:SA1013 is reported on
}
. It misidentifies this as a closing brace of a block statement. Its own definition should even be allowing this:The text was updated successfully, but these errors were encountered: