Commit d0e6bc2f authored by Tiago Cunha's avatar Tiago Cunha

PMD rules changes and fixes

parent 000ef08f
...@@ -11,6 +11,7 @@ import android.view.ViewGroup; ...@@ -11,6 +11,7 @@ import android.view.ViewGroup;
import java.util.List; import java.util.List;
@SuppressWarnings("PMD.GenericsNaming")
public abstract class ModelListAdapter<T, VM, VH extends ModelViewHolder<VM>> public abstract class ModelListAdapter<T, VM, VH extends ModelViewHolder<VM>>
extends RecyclerView.Adapter<VH> { extends RecyclerView.Adapter<VH> {
......
...@@ -9,20 +9,20 @@ ...@@ -9,20 +9,20 @@
<exclude-pattern>.*/R.java</exclude-pattern> <exclude-pattern>.*/R.java</exclude-pattern>
<exclude-pattern>.*/gen/.*</exclude-pattern> <exclude-pattern>.*/gen/.*</exclude-pattern>
<rule ref="rulesets/java/android.xml"/> <rule ref="rulesets/java/android.xml" />
<rule ref="rulesets/java/clone.xml"/> <rule ref="rulesets/java/clone.xml" />
<rule ref="rulesets/java/finalizers.xml"/> <rule ref="rulesets/java/finalizers.xml" />
<rule ref="rulesets/java/imports.xml"> <rule ref="rulesets/java/imports.xml">
<!-- Espresso is designed this way !--> <!-- Espresso is designed this way !-->
<exclude name="TooManyStaticImports"/> <exclude name="TooManyStaticImports" />
</rule> </rule>
<rule ref="rulesets/java/basic.xml"/> <rule ref="rulesets/java/basic.xml" />
<rule ref="rulesets/java/naming.xml"> <rule ref="rulesets/java/naming.xml">
<!--<exclude name="AbstractNaming" />--> <exclude name="AbstractNaming" />
<exclude name="LongVariable"/> <exclude name="LongVariable" />
<!--exclude name="ShortMethodName" /--> <!--exclude name="ShortMethodName" /-->
<!--exclude name="ShortVariable" /--> <!--exclude name="ShortVariable" /-->
<!--<exclude name="ShortClassName" />--> <exclude name="ShortClassName" />
<!--<exclude name="VariableNamingConventions" />--> <!--<exclude name="VariableNamingConventions" />-->
</rule> </rule>
</ruleset> </ruleset>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment