You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is possible to turn of wildcard import rule? #1154
Not sure I understand what you're asking but Google Java Format can only remove unused imports or reorder them, it cannot "expand" wildcard imports, because it's not a compiler
You can use Error Prone though with its (disabled by default) WildcardImport rule, and probably other tools, to fail your build if sources contain a wildcard import. But you'll need an IDE to expand the wildcard.
Activity
tbroyer commentedon Aug 30, 2024
Not sure I understand what you're asking but Google Java Format can only remove unused imports or reorder them, it cannot "expand" wildcard imports, because it's not a compiler
You can use Error Prone though with its (disabled by default)
WildcardImportrule, and probably other tools, to fail your build if sources contain a wildcard import. But you'll need an IDE to expand the wildcard.poliveira-fuze commentedon Aug 30, 2024
I did not understood
Aside that rule webpage, what ErrorProne can do?
And if it's disabled how can I enable it?
poliveira-fuze commentedon Aug 30, 2024
From what I read, ErrorProne does not change anything. Just point out on the compilation.