-
Notifications
You must be signed in to change notification settings - Fork 509
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 Unused Import when importing static java function #872
Comments
@Koriit thanks for the report at the sample project. If you need to unblock yourself, the |
Thanks for the suggestion! |
I also reprodused the bug when there are static class import and concrete static class method import both:
After removing static class import and leaving static method import all works fine. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
Applying linter rule should not break the compilation.
Observed Behavior
There is a false-positive unused import. With hard linter check, cannot build because of linter error. If the import is removed cannot build due to compilation error.
There was no such issue in 0.37.2
Might be related to #845
Steps to Reproduce
This is tricky as I couldn't reproduce a "clean" scenario. However, this is a sample project that reproduces the issue with a google library that we had in one of my projects and which is affected: https://github.com/Koriit/issues-ktlint-872
Your Environment
The text was updated successfully, but these errors were encountered: