-
Notifications
You must be signed in to change notification settings - Fork 507
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
False positive from UnusedImports on org.gradle.kotlin.dsl.provideDelegate #506
Comments
I'm not sure this is a solvable problem. There's no way via static analysis we can tell that |
I wonder if I see it might require compilation in order to tell if the import is used or not, however it is really sad that default |
Alternative option is to allow |
Could you check the type of |
Yes I see that detekt has just whitelisted that import. We could certainly do that.
@JLLeitschuh I'm not sure what you mean here. |
or even "whitelist it provided there's |
It's not very sophisticated, but I put up a PR for this. |
…le (pinterest#513) * Allow unreferenced provideDelegate if there is a by keyword in the file Fixes pinterest#506 * fix test
…le (#513) * Allow unreferenced provideDelegate if there is a by keyword in the file Fixes pinterest/ktlint#506 * fix test
See detekt/detekt#1608
The text was updated successfully, but these errors were encountered: