Skip to content

RCS0056 and raw string still has an issue #1519

@prezaei

Description

@prezaei

Product and Version Used:

<PackageVersion Include="Roslynator.Analyzers" Version="4.12.5" />
<PackageVersion Include="Roslynator.Formatting.Analyzers" Version="4.12.5" />

Steps to Reproduce:

public sealed class SomeClass
{
    public static string SomeMethod()
    {
        const string a = "someText";
        var value = $$"""
            conversation_memory = [[{'author': 'user', 'text': 'hi i'm a human'}], [{'tool_invocation': 'search_web(query="what's in the news?")'}, {'author': 'assistant', 'text': 'hi i'm AI'}], [{'author': 'user', 'text': 'hi i'm a human, again!'}]]
            {{a}}
            """;
        return value;
    }
}
image

Actual Behavior:
Gives an error/warning

Expected Behavior:
No error or warning

AND THANK YOU

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions