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

Unused import not reported #19

Closed
schmist opened this issue Sep 27, 2017 · 3 comments
Closed

Unused import not reported #19

schmist opened this issue Sep 27, 2017 · 3 comments

Comments

@schmist
Copy link

schmist commented Sep 27, 2017

Given the following configuration:

https://gist.github.com/schmist/c4c205bde4bb2b085e71688c3ef10d83

import java.util.Date in Main.kt is not recognized as an unused import as long as it is used in class L. Renaming class L to N (so that it appears alphabetically after file Main.kt) fixes the issue.

@jeremymailen
Copy link
Owner

Thanks for the report, I'll look into it tonight.

@jeremymailen
Copy link
Owner

Thank you for reporting the bug. You've discovered a subtle issue which probably resulted in a number of missed lint errors. I'll push a fixed 1.3.2 in a moment.

jeremymailen added a commit that referenced this issue Sep 29, 2017
@schmist
Copy link
Author

schmist commented Oct 2, 2017

Thanks for the fix. Great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants