-
Notifications
You must be signed in to change notification settings - Fork 503
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
Unused import is not reported #405
Comments
shashachu
added a commit
to shashachu/ktlint
that referenced
this issue
Jul 17, 2019
…interest#437)" This reverts commit 238b774. Fixes pinterest#437, re-introduces pinterest#405
shashachu
added a commit
that referenced
this issue
Jul 17, 2019
Re-opening because I reverted the fix, as it caused a couple regressions with false-positives. |
sowmyav24
pushed a commit
to sowmyav24/ktlint
that referenced
this issue
Jul 18, 2019
…interest#437)" (pinterest#532) * Revert "Report used import when parent reference is already present (pinterest#437)" This reverts commit 238b774. Fixes pinterest#437, re-introduces pinterest#405 * fix build
orchestr7
pushed a commit
to saveourtool/diktat
that referenced
this issue
Jun 29, 2020
…437)" (#532) * Revert "Report used import when parent reference is already present (#437)" This reverts commit 238b774b86cdf6c96dbb8a84d250e7c4a20ac7e7. Fixes pinterest/ktlint#437, re-introduces pinterest/ktlint#405 * fix build
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unused import a of static function is not reported if the function is used referenced with its parent class.
Android Studio/IDea does report the import as unnecessary using KotlinUnusedImportInspection:
The following test added to
NoUnusedImportsRuleTest
currently fails:The error:
The text was updated successfully, but these errors were encountered: