327 lines
14 KiB
XML
327 lines
14 KiB
XML
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<issues format="4" by="lint 2.3.3">
|
||
|
|
||
|
<issue
|
||
|
id="LocaleFolder"
|
||
|
message="The locale folder "`he`" should be called "`iw`" instead; see the `java.util.Locale` documentation">
|
||
|
<location
|
||
|
file="src/main/res/values-he"/>
|
||
|
</issue>
|
||
|
|
||
|
<issue
|
||
|
id="OldTargetApi"
|
||
|
message="Not targeting the latest versions of Android; compatibility modes apply. Consider testing and updating this version. Consult the `android.os.Build.VERSION_CODES` javadoc for details."
|
||
|
errorLine1=" <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="16" />"
|
||
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||
|
<location
|
||
|
file="src/main/AndroidManifest.xml"
|
||
|
line="7"
|
||
|
column="41"/>
|
||
|
</issue>
|
||
|
|
||
|
<issue
|
||
|
id="GradleOverrides"
|
||
|
message="This `minSdkVersion` value (`4`) is not used; it is always overridden by the value specified in the Gradle build script (`14`)"
|
||
|
errorLine1=" <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="16" />"
|
||
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||
|
<location
|
||
|
file="src/main/AndroidManifest.xml"
|
||
|
line="7"
|
||
|
column="15"/>
|
||
|
</issue>
|
||
|
|
||
|
<issue
|
||
|
id="GradleOverrides"
|
||
|
message="This `targetSdkVersion` value (`16`) is not used; it is always overridden by the value specified in the Gradle build script (`22`)"
|
||
|
errorLine1=" <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="16" />"
|
||
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||
|
<location
|
||
|
file="src/main/AndroidManifest.xml"
|
||
|
line="7"
|
||
|
column="41"/>
|
||
|
</issue>
|
||
|
|
||
|
<issue
|
||
|
id="Deprecated"
|
||
|
message="`android:singleLine` is deprecated: Use `maxLines="1"` instead"
|
||
|
errorLine1=" android:singleLine="true""
|
||
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||
|
<location
|
||
|
file="src/main/res/layout/pull_to_refresh_header_vertical.xml"
|
||
|
line="45"
|
||
|
column="17"/>
|
||
|
</issue>
|
||
|
|
||
|
<issue
|
||
|
id="Deprecated"
|
||
|
message="`android:singleLine` is deprecated: Use `maxLines="1"` instead"
|
||
|
errorLine1=" android:singleLine="true""
|
||
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||
|
<location
|
||
|
file="src/main/res/layout/pull_to_refresh_header_vertical.xml"
|
||
|
line="53"
|
||
|
column="17"/>
|
||
|
</issue>
|
||
|
|
||
|
<issue
|
||
|
id="MissingTranslation"
|
||
|
message=""`pull_to_refresh_from_bottom_pull_label`" is not translated in "es" (Spanish), "fr" (French), "pt" (Portuguese), "pt-BR" (Portuguese: Brazil)"
|
||
|
errorLine1=" <string name="pull_to_refresh_from_bottom_pull_label">@string/pull_to_refresh_pull_label</string>"
|
||
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||
|
<location
|
||
|
file="src/main/res/values/pull_refresh_strings.xml"
|
||
|
line="9"
|
||
|
column="13"/>
|
||
|
</issue>
|
||
|
|
||
|
<issue
|
||
|
id="MissingTranslation"
|
||
|
message=""`pull_to_refresh_from_bottom_release_label`" is not translated in "es" (Spanish), "fr" (French), "pt" (Portuguese), "pt-BR" (Portuguese: Brazil)"
|
||
|
errorLine1=" <string name="pull_to_refresh_from_bottom_release_label">@string/pull_to_refresh_release_label</string>"
|
||
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||
|
<location
|
||
|
file="src/main/res/values/pull_refresh_strings.xml"
|
||
|
line="10"
|
||
|
column="13"/>
|
||
|
</issue>
|
||
|
|
||
|
<issue
|
||
|
id="MissingTranslation"
|
||
|
message=""`pull_to_refresh_from_bottom_refreshing_label`" is not translated in "es" (Spanish), "fr" (French), "pt" (Portuguese), "pt-BR" (Portuguese: Brazil)"
|
||
|
errorLine1=" <string name="pull_to_refresh_from_bottom_refreshing_label">@string/pull_to_refresh_refreshing_label</string>"
|
||
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||
|
<location
|
||
|
file="src/main/res/values/pull_refresh_strings.xml"
|
||
|
line="11"
|
||
|
column="13"/>
|
||
|
</issue>
|
||
|
|
||
|
<issue
|
||
|
id="AddJavascriptInterface"
|
||
|
message="`WebView.addJavascriptInterface` should not be called with minSdkVersion < 17 for security reasons: JavaScript can use reflection to manipulate application"
|
||
|
errorLine1=" webView.addJavascriptInterface(mJsCallback, JS_INTERFACE_PKG);"
|
||
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~">
|
||
|
<location
|
||
|
file="src/main/java/com/handmark/pulltorefresh/library/extras/PullToRefreshWebView2.java"
|
||
|
line="90"
|
||
|
column="11"/>
|
||
|
</issue>
|
||
|
|
||
|
<issue
|
||
|
id="JavascriptInterface"
|
||
|
message="None of the methods in the added interface (JsValueCallback) have been annotated with `@android.webkit.JavascriptInterface`; they will not be visible in API 17"
|
||
|
errorLine1=" webView.addJavascriptInterface(mJsCallback, JS_INTERFACE_PKG);"
|
||
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~">
|
||
|
<location
|
||
|
file="src/main/java/com/handmark/pulltorefresh/library/extras/PullToRefreshWebView2.java"
|
||
|
line="90"
|
||
|
column="11"/>
|
||
|
</issue>
|
||
|
|
||
|
<issue
|
||
|
id="ObsoleteSdkInt"
|
||
|
message="Unnecessary; SDK_INT is always >= 14"
|
||
|
errorLine1=" return VERSION.SDK_INT >= VERSION_CODES.GINGERBREAD && mOverScrollEnabled"
|
||
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||
|
<location
|
||
|
file="src/main/java/com/handmark/pulltorefresh/library/PullToRefreshBase.java"
|
||
|
line="211"
|
||
|
column="10"/>
|
||
|
</issue>
|
||
|
|
||
|
<issue
|
||
|
id="ObsoleteSdkInt"
|
||
|
message="Unnecessary; SDK_INT is always >= 14"
|
||
|
errorLine1=" if (VERSION.SDK_INT >= VERSION_CODES.GINGERBREAD) {"
|
||
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||
|
<location
|
||
|
file="src/main/java/com/handmark/pulltorefresh/library/PullToRefreshExpandableListView.java"
|
||
|
line="54"
|
||
|
column="7"/>
|
||
|
</issue>
|
||
|
|
||
|
<issue
|
||
|
id="ObsoleteSdkInt"
|
||
|
message="Unnecessary; SDK_INT is always >= 14"
|
||
|
errorLine1=" if (VERSION.SDK_INT >= VERSION_CODES.GINGERBREAD) {"
|
||
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||
|
<location
|
||
|
file="src/main/java/com/handmark/pulltorefresh/library/PullToRefreshGridView.java"
|
||
|
line="54"
|
||
|
column="7"/>
|
||
|
</issue>
|
||
|
|
||
|
<issue
|
||
|
id="ObsoleteSdkInt"
|
||
|
message="Unnecessary; SDK_INT is always >= 14"
|
||
|
errorLine1=" if (VERSION.SDK_INT >= VERSION_CODES.GINGERBREAD) {"
|
||
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||
|
<location
|
||
|
file="src/main/java/com/handmark/pulltorefresh/library/PullToRefreshHorizontalScrollView.java"
|
||
|
line="53"
|
||
|
column="7"/>
|
||
|
</issue>
|
||
|
|
||
|
<issue
|
||
|
id="ObsoleteSdkInt"
|
||
|
message="Unnecessary; SDK_INT is always >= 14"
|
||
|
errorLine1=" if (VERSION.SDK_INT >= VERSION_CODES.GINGERBREAD) {"
|
||
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||
|
<location
|
||
|
file="src/main/java/com/handmark/pulltorefresh/library/PullToRefreshListView.java"
|
||
|
line="207"
|
||
|
column="7"/>
|
||
|
</issue>
|
||
|
|
||
|
<issue
|
||
|
id="ObsoleteSdkInt"
|
||
|
message="Unnecessary; SDK_INT is always >= 14"
|
||
|
errorLine1=" if (VERSION.SDK_INT >= VERSION_CODES.GINGERBREAD) {"
|
||
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||
|
<location
|
||
|
file="src/main/java/com/handmark/pulltorefresh/library/PullToRefreshScrollView.java"
|
||
|
line="52"
|
||
|
column="7"/>
|
||
|
</issue>
|
||
|
|
||
|
<issue
|
||
|
id="ObsoleteSdkInt"
|
||
|
message="Unnecessary; SDK_INT is always >= 14"
|
||
|
errorLine1=" if (VERSION.SDK_INT >= VERSION_CODES.GINGERBREAD) {"
|
||
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||
|
<location
|
||
|
file="src/main/java/com/handmark/pulltorefresh/library/PullToRefreshWebView.java"
|
||
|
line="98"
|
||
|
column="7"/>
|
||
|
</issue>
|
||
|
|
||
|
<issue
|
||
|
id="ObsoleteSdkInt"
|
||
|
message="Unnecessary; SDK_INT is always >= 14"
|
||
|
errorLine1=" if (VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB) {"
|
||
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||
|
<location
|
||
|
file="src/main/java/com/handmark/pulltorefresh/library/internal/ViewCompat.java"
|
||
|
line="44"
|
||
|
column="7"/>
|
||
|
</issue>
|
||
|
|
||
|
<issue
|
||
|
id="FloatMath"
|
||
|
message="Use `java.lang.Math#floor` instead of `android.util.FloatMath#floor()` since it is faster as of API 8"
|
||
|
errorLine1=" float exactContentHeight = FloatMath.floor(mRefreshableView.getContentHeight() * mRefreshableView.getScale());"
|
||
|
errorLine2=" ~~~~~~~~~~~~~~~">
|
||
|
<location
|
||
|
file="src/main/java/com/handmark/pulltorefresh/library/PullToRefreshWebView.java"
|
||
|
line="115"
|
||
|
column="30"/>
|
||
|
</issue>
|
||
|
|
||
|
<issue
|
||
|
id="FloatMath"
|
||
|
message="Use `java.lang.Math#floor` instead of `android.util.FloatMath#floor()` since it is faster as of API 8"
|
||
|
errorLine1=" return (int) Math.max(0, FloatMath.floor(mRefreshableView.getContentHeight() * mRefreshableView.getScale())"
|
||
|
errorLine2=" ~~~~~~~~~~~~~~~">
|
||
|
<location
|
||
|
file="src/main/java/com/handmark/pulltorefresh/library/PullToRefreshWebView.java"
|
||
|
line="161"
|
||
|
column="29"/>
|
||
|
</issue>
|
||
|
|
||
|
<issue
|
||
|
id="IconMissingDensityFolder"
|
||
|
message="Missing density variation folders in `src/main/res`: drawable-xxhdpi">
|
||
|
<location
|
||
|
file="src/main/res"/>
|
||
|
</issue>
|
||
|
|
||
|
<issue
|
||
|
id="ViewConstructor"
|
||
|
message="Custom view `RotateLoadingLayout` is missing constructor used by tools: `(Context)` or `(Context,AttributeSet)` or `(Context,AttributeSet,int)`"
|
||
|
errorLine1="public class RotateLoadingLayout extends LoadingLayout {"
|
||
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~">
|
||
|
<location
|
||
|
file="src/main/java/com/handmark/pulltorefresh/library/internal/RotateLoadingLayout.java"
|
||
|
line="30"
|
||
|
column="14"/>
|
||
|
</issue>
|
||
|
|
||
|
<issue
|
||
|
id="ContentDescription"
|
||
|
message="[Accessibility] Missing `contentDescription` attribute on image"
|
||
|
errorLine1=" <ImageView"
|
||
|
errorLine2=" ^">
|
||
|
<location
|
||
|
file="src/main/res/layout/pull_to_refresh_header_horizontal.xml"
|
||
|
line="13"
|
||
|
column="9"/>
|
||
|
</issue>
|
||
|
|
||
|
<issue
|
||
|
id="ContentDescription"
|
||
|
message="[Accessibility] Missing `contentDescription` attribute on image"
|
||
|
errorLine1=" <ImageView"
|
||
|
errorLine2=" ^">
|
||
|
<location
|
||
|
file="src/main/res/layout/pull_to_refresh_header_vertical.xml"
|
||
|
line="18"
|
||
|
column="13"/>
|
||
|
</issue>
|
||
|
|
||
|
<issue
|
||
|
id="RtlHardcoded"
|
||
|
message="Use "`Gravity.START`" instead of "`Gravity.LEFT`" to ensure correct behavior in right-to-left locales"
|
||
|
errorLine1=" lp.gravity = scrollDirection == Orientation.VERTICAL ? Gravity.TOP : Gravity.LEFT;"
|
||
|
errorLine2=" ~~~~">
|
||
|
<location
|
||
|
file="src/main/java/com/handmark/pulltorefresh/library/internal/LoadingLayout.java"
|
||
|
line="92"
|
||
|
column="82"/>
|
||
|
</issue>
|
||
|
|
||
|
<issue
|
||
|
id="RtlHardcoded"
|
||
|
message="Use "`Gravity.END`" instead of "`Gravity.RIGHT`" to ensure correct behavior in right-to-left locales"
|
||
|
errorLine1=" lp.gravity = scrollDirection == Orientation.VERTICAL ? Gravity.BOTTOM : Gravity.RIGHT;"
|
||
|
errorLine2=" ~~~~~">
|
||
|
<location
|
||
|
file="src/main/java/com/handmark/pulltorefresh/library/internal/LoadingLayout.java"
|
||
|
line="102"
|
||
|
column="85"/>
|
||
|
</issue>
|
||
|
|
||
|
<issue
|
||
|
id="RtlHardcoded"
|
||
|
message="Use "`Gravity.END`" instead of "`Gravity.RIGHT`" to ensure correct behavior in right-to-left locales"
|
||
|
errorLine1=" params.gravity = Gravity.TOP | Gravity.RIGHT;"
|
||
|
errorLine2=" ~~~~~">
|
||
|
<location
|
||
|
file="src/main/java/com/handmark/pulltorefresh/library/PullToRefreshAdapterViewBase.java"
|
||
|
line="344"
|
||
|
column="43"/>
|
||
|
</issue>
|
||
|
|
||
|
<issue
|
||
|
id="RtlHardcoded"
|
||
|
message="Use "`Gravity.END`" instead of "`Gravity.RIGHT`" to ensure correct behavior in right-to-left locales"
|
||
|
errorLine1=" params.gravity = Gravity.BOTTOM | Gravity.RIGHT;"
|
||
|
errorLine2=" ~~~~~">
|
||
|
<location
|
||
|
file="src/main/java/com/handmark/pulltorefresh/library/PullToRefreshAdapterViewBase.java"
|
||
|
line="359"
|
||
|
column="46"/>
|
||
|
</issue>
|
||
|
|
||
|
<issue
|
||
|
id="RtlHardcoded"
|
||
|
message="Use "`start`" instead of "`left`" to ensure correct behavior in right-to-left locales"
|
||
|
errorLine1=" android:layout_gravity="left|center_vertical" >"
|
||
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
|
||
|
<location
|
||
|
file="src/main/res/layout/pull_to_refresh_header_vertical.xml"
|
||
|
line="16"
|
||
|
column="37"/>
|
||
|
</issue>
|
||
|
|
||
|
</issues>
|