We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Detekt should not report NoUnusedImports for used import.
NoUnusedImports
Bar.kt
package detekt.bar fun `is`() = Unit
Foo.kt
package detekt import detekt.bar.`is` as is2 fun foo() = is2()
Detekt reports issue NoUnusedImports in line import detekt.bar.`is` as is2
import detekt.bar.`is` as is2
The text was updated successfully, but these errors were encountered:
The NoUnusedImports rule is a rule that we mirror from KtLint: https://github.com/pinterest/ktlint/blob/master/ktlint-ruleset-standard/src/main/kotlin/com/pinterest/ktlint/ruleset/standard/NoUnusedImportsRule.kt
You should open a similar issue on https://github.com/pinterest/ktlint (perhaps they already have a similar issue resolved pinterest/ktlint#910).
Closing as this is unrelated to us.
Sorry, something went wrong.
No branches or pull requests
Expected Behavior
Detekt should not report
NoUnusedImports
for used import.Steps to Reproduce
Bar.kt
Foo.kt
Detekt reports issue
NoUnusedImports
in lineimport detekt.bar.`is` as is2
Your Environment
The text was updated successfully, but these errors were encountered: