Is there a way of Lint to detect when a class can ...
# android
e
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
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
I want to be warned when a class inside my module is only used by it.
a
But it can't without knowing all module dependencies Which it can't really know
e
I see. It would help a lot.
u
What you could do is just mark all classes as internal and then fix compilation errors I guess.
e
Yes, tried that. But the work is huge. 😛