We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As wildcard imports may lead to inaccurate results, we could implement a flag that will cause the analysis to fail if one is encountered.
Wildcard imports can be considered a bad practice, so this might be a helpful feature anyway
The text was updated successfully, but these errors were encountered:
#33: Allow to match literal '*' in package patterns
e3a7151
The special literal package part '*' can be used to match only wildcard imports:
'*'
Preventing a certain wildcarad import:
<bannedImport>java.util.'*'</bannedImport>
This pattern will prevent the usage of wildcard imports from java.util while still allowing explicit imports like java.util.ArrayList
java.util
java.util.ArrayList
Preventing any wildcard import:
<bannedImport>**.'*'</bannedImport>
Sorry, something went wrong.
Will be released as 0.18.0
No branches or pull requests
As wildcard imports may lead to inaccurate results, we could implement a flag that will cause the analysis to fail if one is encountered.
Wildcard imports can be considered a bad practice, so this might be a helpful feature anyway
The text was updated successfully, but these errors were encountered: