Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TrimMultilineRawString false-positive on annotation parameters #5476

Closed
BraisGabin opened this issue Oct 25, 2022 · 0 comments · Fixed by #5480
Closed

TrimMultilineRawString false-positive on annotation parameters #5476

BraisGabin opened this issue Oct 25, 2022 · 0 comments · Fixed by #5480
Labels
Milestone

Comments

@BraisGabin
Copy link
Member

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant