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

@Suppress doesn't work with StringTemplate rule #5053

Closed
BraisGabin opened this issue Jul 8, 2022 · 1 comment
Closed

@Suppress doesn't work with StringTemplate rule #5053

BraisGabin opened this issue Jul 8, 2022 · 1 comment

Comments

@BraisGabin
Copy link
Member

BraisGabin commented Jul 8, 2022

Expected Behavior

If I annotate a class with @Suppress("StringTemplate") the rule StringTemplate doesn't raise any issue in that class.

Observed Behavior

It does: https://github.com/detekt/detekt/runs/7255299587?check_suite_focus=true#step:4:540

Steps to Reproduce

@Suppress("StringTemplate")
class A {
 val a = "a"
 val b = "${a}"
}

Context

#5051

It works if I use @file:Suppress("StringTemplate")

Your Environment

@BraisGabin
Copy link
Member Author

Closing. I just remember that this is a known wont-fix

@BraisGabin BraisGabin closed this as not planned Won't fix, can't repro, duplicate, stale Jul 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant