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

[Internal] Create a lint to make sure java classes are not imported from kotlin classes #643

Closed
samtstern opened this issue Sep 7, 2018 · 4 comments
Milestone

Comments

@samtstern
Copy link
Contributor

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 from foo.java

@samtstern samtstern added this to the kotlin milestone Sep 7, 2018
@the-dagger
Copy link
Contributor

the-dagger commented Sep 7, 2018

@samstern how are you planning on implementing this?
As some sort of style check or baked into the default lint check?

Also any good resources that you might link to read up on creating a custom lint checker?

@samtstern
Copy link
Contributor Author

I think this could be implemented inside the internal module and exported as lintChecks.

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.

@the-dagger
Copy link
Contributor

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?

@samtstern
Copy link
Contributor Author

samtstern commented Sep 8, 2018 via email

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