https://kotlinlang.org logo
#android
Title
# android
e

escodro

06/13/2019, 9:32 AM
Is there a way of Lint to detect when a class can be set as
internal
? Similar to suggest when a class can be
package-private
in Java.
u

540grunkspin

06/13/2019, 12:23 PM
Won't that require the linter to know about all the modules that might depend on the module you're in, given that you don't want it to warn about all classes that are not used in the current project?
e

escodro

06/13/2019, 2:26 PM
I want to be warned when a class inside my module is only used by it.
a

Alowaniak

06/13/2019, 2:46 PM
But it can't without knowing all module dependencies Which it can't really know
e

escodro

06/13/2019, 3:58 PM
I see. It would help a lot.
u

540grunkspin

06/13/2019, 4:08 PM
What you could do is just mark all classes as internal and then fix compilation errors I guess.
e

escodro

06/13/2019, 4:10 PM
Yes, tried that. But the work is huge. 😛