Skip to content

SA1513 provides incorrect warning with interpolated string #3442

@MatthieuMEZIL

Description

@MatthieuMEZIL

With the following code

string suffix = $@"{(string.IsNullOrEmpty(extraSupport) ? string.Empty : $@"
        {extraSupport}")}
    }}
}}"

StyleCop 1.1.118 (not tested with the recent beta versions) generates a SA1513 on the closing curly bracket at the end of "{extraSupport}")}" which is incorrect

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions