|
@@ -189,7 +189,6 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/x
|
|
<reason>Use hadoop-common provided Sets rather than Guava provided Sets</reason>
|
|
<reason>Use hadoop-common provided Sets rather than Guava provided Sets</reason>
|
|
<bannedImports>
|
|
<bannedImports>
|
|
<bannedImport>org.apache.hadoop.thirdparty.com.google.common.collect.Sets</bannedImport>
|
|
<bannedImport>org.apache.hadoop.thirdparty.com.google.common.collect.Sets</bannedImport>
|
|
- <bannedImport>com.google.common.collect.Sets</bannedImport>
|
|
|
|
</bannedImports>
|
|
</bannedImports>
|
|
</restrictImports>
|
|
</restrictImports>
|
|
<restrictImports implementation="de.skuzzle.enforcer.restrictimports.rule.RestrictImports">
|
|
<restrictImports implementation="de.skuzzle.enforcer.restrictimports.rule.RestrictImports">
|
|
@@ -197,15 +196,62 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/x
|
|
<reason>Use hadoop-common provided Lists rather than Guava provided Lists</reason>
|
|
<reason>Use hadoop-common provided Lists rather than Guava provided Lists</reason>
|
|
<bannedImports>
|
|
<bannedImports>
|
|
<bannedImport>org.apache.hadoop.thirdparty.com.google.common.collect.Lists</bannedImport>
|
|
<bannedImport>org.apache.hadoop.thirdparty.com.google.common.collect.Lists</bannedImport>
|
|
- <bannedImport>com.google.common.collect.Lists</bannedImport>
|
|
|
|
</bannedImports>
|
|
</bannedImports>
|
|
</restrictImports>
|
|
</restrictImports>
|
|
<restrictImports implementation="de.skuzzle.enforcer.restrictimports.rule.RestrictImports">
|
|
<restrictImports implementation="de.skuzzle.enforcer.restrictimports.rule.RestrictImports">
|
|
<includeTestCode>true</includeTestCode>
|
|
<includeTestCode>true</includeTestCode>
|
|
- <reason>Use hadoop-common provided VisibleForTesting rather than the one provided by Guava</reason>
|
|
|
|
|
|
+ <reason>Use hadoop-annotation provided VisibleForTesting rather than the one provided by Guava</reason>
|
|
<bannedImports>
|
|
<bannedImports>
|
|
<bannedImport>org.apache.hadoop.thirdparty.com.google.common.annotations.VisibleForTesting</bannedImport>
|
|
<bannedImport>org.apache.hadoop.thirdparty.com.google.common.annotations.VisibleForTesting</bannedImport>
|
|
- <bannedImport>com.google.common.annotations.VisibleForTesting</bannedImport>
|
|
|
|
|
|
+ </bannedImports>
|
|
|
|
+ </restrictImports>
|
|
|
|
+ <restrictImports implementation="de.skuzzle.enforcer.restrictimports.rule.RestrictImports">
|
|
|
|
+ <includeTestCode>true</includeTestCode>
|
|
|
|
+ <reason>Use alternatives to Guava common classes</reason>
|
|
|
|
+ <bannedImports>
|
|
|
|
+ <bannedImport>com.google.common.**</bannedImport>
|
|
|
|
+ </bannedImports>
|
|
|
|
+ </restrictImports>
|
|
|
|
+ <restrictImports implementation="de.skuzzle.enforcer.restrictimports.rule.RestrictImports">
|
|
|
|
+ <includeTestCode>true</includeTestCode>
|
|
|
|
+ <reason>Use alternative to Guava provided BaseEncoding</reason>
|
|
|
|
+ <bannedImports>
|
|
|
|
+ <bannedImport>org.apache.hadoop.thirdparty.com.google.common.io.BaseEncoding</bannedImport>
|
|
|
|
+ </bannedImports>
|
|
|
|
+ </restrictImports>
|
|
|
|
+ <restrictImports implementation="de.skuzzle.enforcer.restrictimports.rule.RestrictImports">
|
|
|
|
+ <includeTestCode>true</includeTestCode>
|
|
|
|
+ <reason>Use alternative to Guava provided Optional</reason>
|
|
|
|
+ <bannedImports>
|
|
|
|
+ <bannedImport>org.apache.hadoop.thirdparty.com.google.common.base.Optional</bannedImport>
|
|
|
|
+ </bannedImports>
|
|
|
|
+ </restrictImports>
|
|
|
|
+ <restrictImports implementation="de.skuzzle.enforcer.restrictimports.rule.RestrictImports">
|
|
|
|
+ <includeTestCode>true</includeTestCode>
|
|
|
|
+ <reason>Use alternative to Guava provided Function</reason>
|
|
|
|
+ <bannedImports>
|
|
|
|
+ <bannedImport>org.apache.hadoop.thirdparty.com.google.common.base.Function</bannedImport>
|
|
|
|
+ </bannedImports>
|
|
|
|
+ </restrictImports>
|
|
|
|
+ <restrictImports implementation="de.skuzzle.enforcer.restrictimports.rule.RestrictImports">
|
|
|
|
+ <includeTestCode>true</includeTestCode>
|
|
|
|
+ <reason>Use alternative to Guava provided Predicate</reason>
|
|
|
|
+ <bannedImports>
|
|
|
|
+ <bannedImport>org.apache.hadoop.thirdparty.com.google.common.base.Predicate</bannedImport>
|
|
|
|
+ </bannedImports>
|
|
|
|
+ </restrictImports>
|
|
|
|
+ <restrictImports implementation="de.skuzzle.enforcer.restrictimports.rule.RestrictImports">
|
|
|
|
+ <includeTestCode>true</includeTestCode>
|
|
|
|
+ <reason>Use alternative to Guava provided Supplier</reason>
|
|
|
|
+ <bannedImports>
|
|
|
|
+ <bannedImport>org.apache.hadoop.thirdparty.com.google.common.base.Supplier</bannedImport>
|
|
|
|
+ </bannedImports>
|
|
|
|
+ </restrictImports>
|
|
|
|
+ <restrictImports implementation="de.skuzzle.enforcer.restrictimports.rule.RestrictImports">
|
|
|
|
+ <includeTestCode>true</includeTestCode>
|
|
|
|
+ <reason>Use alternative to Guava provided ImmutableListMultimap</reason>
|
|
|
|
+ <bannedImports>
|
|
|
|
+ <bannedImport>org.apache.hadoop.thirdparty.com.google.common.collect.ImmutableListMultimap</bannedImport>
|
|
</bannedImports>
|
|
</bannedImports>
|
|
</restrictImports>
|
|
</restrictImports>
|
|
</rules>
|
|
</rules>
|