-
Notifications
You must be signed in to change notification settings - Fork 11
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
Wildcard ban does not work? #76
Comments
You probably need to prefix the pattern with |
Thank you for your help, but that does not seem to work unless I am missing something: <groups>
<group>
<reason>Use org.jetbrains.annotations.VisibleForTesting</reason>
<basePackage>**</basePackage>
<bannedImports>
<!---
Matches multiple dependencies that shade/relocate Google annotations
Examples :
com.couchbase.client.core.deps.com.google.common.annotations.VisibleForTesting
org.testcontainers.shaded.com.google.common.annotations
-->
<bannedImport>**.com.google.common.annotations.VisibleForTesting</bannedImport>
</bannedImport>
</bannedImports>
</group>
</groups> +import com.couchbase.client.core.deps.com.google.common.annotations.VisibleForTesting;
import com.github.jasync.sql.db.pool.PooledObject;
import java.util.List;
import java.util.Map;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
+
import pgnio.QueryBuildConnection.Prepared;
import pgnio.QueryMessage.Row;
import pgnio.QueryReadyConnection.AutoCommit;
@@ -42,6 +44,7 @@ public class AutoCommitPooledObject implements PooledObject {
// return autoCommit.ctx.io.isReadWrite();
// }
+ @VisibleForTesting
pu
This works though : <bannedImport>com.couchbase.client.core.deps.com.google.common.annotations.VisibleForTesting</bannedImport> [ERROR] Reason: Use org.jetbrains.annotations.VisibleForTesting
[ERROR] in file: pgnio/AutoCommitPooledObject.java
[ERROR] com.couchbase.client.core.deps.com.google.common.annotations.VisibleForTesting (Line: 3, Matched by: com.couchbase.client.core.deps.com.google.common.annotations.VisibleForTesting)
|
You are right, this is a bug. According to the documentation, There might be further issues with the way we currently implemented the matching algorithm. I created a reminder ticket (which needs some more specification) to improve this in the future: #78 |
Thank you for the fix. That did it |
It seems that <bannedImport>**.com.google.common.annotations.VisibleForTesting</bannedImport> Does not match |
Yes, for the time being that is expected because |
Hello there,
This does not seem to work
As described by the comment, the goal is to match multiple dependencies that shade/relocate Google annotations like com.couchbase.client.core.deps.com.google.common.annotations.VisibleForTesting
The text was updated successfully, but these errors were encountered: