-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
[Internal] Create a lint to make sure java classes are not imported from kotlin classes #643
Comments
@samstern how are you planning on implementing this? Also any good resources that you might link to read up on creating a custom lint checker? |
I think this could be implemented inside the I have only done a custom lint check one time, and that's in FirebaseUI-Android. I may try to copy from that, but I don't actually know if that's the easiest way. But anyway yeah I can tackle this one, unless you really want to do it just for learning purposes. |
I wanted to explore this as I've not done something like this before. How does that sound? |
Sgtm! Here's an example lint check in FBUI:
https://github.com/firebase/FirebaseUI-Android/blob/master/internal/lint/src/main/java/com/firebaseui/lint/FirestoreRecyclerAdapterLifecycleDetector.kt
There are others in that folder as well. We did some really strange
packaging tricks to be able to hide our lints from library users but you
won't have to do any of that.
…On Fri, Sep 7, 2018, 4:57 PM Harshit Dwivedi ***@***.***> wrote:
I wanted to explore this as I've not done something like this before.
Can you share the relevant code you did in FirebaseUI?
I can use that as reference and try to fix this one by myself and if
things hit the fan you can take over.
How does that sound?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#643 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIEw6lFhth1znvolyH8DKvElaMZOdjeOks5uYwfLgaJpZM4WffG6>
.
|
When converting to kotlin it's very easy to get crossed imports.
If we see a package
foo.kotlin
, none of the code in there should import fromfoo.java
The text was updated successfully, but these errors were encountered: