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
Currently, SA1013 interferes in situations where I would like to split very long interpolated strings into multiple lines, or when tooling like Resharper does that when formatting code.
This can be seen in the following example code:
varmessage=$"This a very long message with id {id }, that is easier to read when split into multiple lines ({numberOfLines } lines). Some additional expression to make it even longer: {(foobarbaz*xyz)/(foobarbaz+xyz) }";
Here, SA1013 generates warnings on lines starting with } (i.e. lines 4, 6 and 8).
The warning is that } should not be preceded by whitespace.
My suggestion is to not generate these warning in this case.
The text was updated successfully, but these errors were encountered:
morsiu
added a commit
to morsiu/StyleCopAnalyzers
that referenced
this issue
Feb 6, 2025
Currently, SA1013 interferes in situations where I would like to split very long interpolated strings into multiple lines, or when tooling like Resharper does that when formatting code.
This can be seen in the following example code:
Here, SA1013 generates warnings on lines starting with
}
(i.e. lines 4, 6 and 8).The warning is that
}
should not be preceded by whitespace.My suggestion is to not generate these warning in this case.
The text was updated successfully, but these errors were encountered: