Skip to content

TrimMultilineRawString false-positive on annotation parameters #5476

@BraisGabin

Description

@BraisGabin

Observed Behavior

    @DisplayName(
        """
            Given something
            When something
            Then something
        """,
    )

TrimMultilineRawString reports raw strings inside annotations. The problem is that the compiler doesn't allow to add .trimIndent() on that scope so we should disable this rule for this case.

Your Environment

  • Version of detekt used: 1.22.0-RC2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions