mirror of
https://github.com/ultrasonic/ultrasonic
synced 2024-12-29 02:01:53 +01:00
438af4de7e
This disables lint warnings for already existing issues, but it will work for a new issues. Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
247 lines
10 KiB
XML
247 lines
10 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<issues format="4" by="lint 2.3.3">
|
|
|
|
<issue
|
|
id="InlinedApi"
|
|
message="Field requires API level 17 (current min is 14): `android.view.View#LAYOUT_DIRECTION_RTL`"
|
|
errorLine1=" if (mSlideDrawable != null) mSlideDrawable.setIsRtl(layoutDirection == LAYOUT_DIRECTION_RTL);"
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="src/main/java/net/simonvt/menudrawer/MenuDrawer.java"
|
|
line="882"
|
|
column="80"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="InlinedApi"
|
|
message="Field requires API level 17 (current min is 14): `android.view.View#LAYOUT_DIRECTION_RTL`"
|
|
errorLine1=" mSlideDrawable.setIsRtl(ViewHelper.getLayoutDirection(this) == LAYOUT_DIRECTION_RTL);"
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="src/main/java/net/simonvt/menudrawer/MenuDrawer.java"
|
|
line="1325"
|
|
column="72"/>
|
|
</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="7" android:targetSdkVersion="16" />"
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="src/main/AndroidManifest.xml"
|
|
line="7"
|
|
column="41"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="GradleOverrides"
|
|
message="This `minSdkVersion` value (`7`) is not used; it is always overridden by the value specified in the Gradle build script (`14`)"
|
|
errorLine1=" <uses-sdk android:minSdkVersion="7" 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="7" android:targetSdkVersion="16" />"
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="src/main/AndroidManifest.xml"
|
|
line="7"
|
|
column="41"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="ParcelClassLoader"
|
|
message="Using the default class loader will not work if you are restoring your own classes. Consider using for example `readBundle(getClass().getClassLoader())` instead."
|
|
errorLine1=" mState = in.readBundle();"
|
|
errorLine2=" ~~~~~~~~~~~~">
|
|
<location
|
|
file="src/main/java/net/simonvt/menudrawer/MenuDrawer.java"
|
|
line="1630"
|
|
column="25"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="ObsoleteSdkInt"
|
|
message="Unnecessary; SDK_INT is never < 14"
|
|
errorLine1=" if (mUsesCompat && Build.VERSION.SDK_INT < Build.VERSION_CODES.ICE_CREAM_SANDWICH) {"
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="src/main/java/net/simonvt/menudrawer/compat/ActionBarHelper.java"
|
|
line="41"
|
|
column="28"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="ObsoleteSdkInt"
|
|
message="Unnecessary; SDK_INT is always >= 14"
|
|
errorLine1=" } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {"
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="src/main/java/net/simonvt/menudrawer/compat/ActionBarHelper.java"
|
|
line="43"
|
|
column="20"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="ObsoleteSdkInt"
|
|
message="Unnecessary; SDK_INT is never < 14"
|
|
errorLine1=" if (mUsesCompat && Build.VERSION.SDK_INT < Build.VERSION_CODES.ICE_CREAM_SANDWICH) {"
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="src/main/java/net/simonvt/menudrawer/compat/ActionBarHelper.java"
|
|
line="51"
|
|
column="28"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="ObsoleteSdkInt"
|
|
message="Unnecessary; SDK_INT is always >= 14"
|
|
errorLine1=" } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {"
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="src/main/java/net/simonvt/menudrawer/compat/ActionBarHelper.java"
|
|
line="53"
|
|
column="20"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="ObsoleteSdkInt"
|
|
message="Unnecessary; SDK_INT is never < 14"
|
|
errorLine1=" if (mUsesCompat && Build.VERSION.SDK_INT < Build.VERSION_CODES.ICE_CREAM_SANDWICH) {"
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="src/main/java/net/simonvt/menudrawer/compat/ActionBarHelper.java"
|
|
line="59"
|
|
column="28"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="ObsoleteSdkInt"
|
|
message="Unnecessary; SDK_INT is always >= 14"
|
|
errorLine1=" } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {"
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="src/main/java/net/simonvt/menudrawer/compat/ActionBarHelper.java"
|
|
line="61"
|
|
column="20"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="ObsoleteSdkInt"
|
|
message="Unnecessary; SDK_INT is never < 14"
|
|
errorLine1=" if (mUsesCompat && Build.VERSION.SDK_INT < Build.VERSION_CODES.ICE_CREAM_SANDWICH) {"
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="src/main/java/net/simonvt/menudrawer/compat/ActionBarHelper.java"
|
|
line="67"
|
|
column="28"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="ObsoleteSdkInt"
|
|
message="Unnecessary; SDK_INT is always >= 14"
|
|
errorLine1=" } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {"
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="src/main/java/net/simonvt/menudrawer/compat/ActionBarHelper.java"
|
|
line="69"
|
|
column="20"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="ObsoleteSdkInt"
|
|
message="Unnecessary; SDK_INT is never < 14"
|
|
errorLine1=" if (mUsesCompat && Build.VERSION.SDK_INT < Build.VERSION_CODES.ICE_CREAM_SANDWICH) {"
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="src/main/java/net/simonvt/menudrawer/compat/ActionBarHelper.java"
|
|
line="77"
|
|
column="28"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="ObsoleteSdkInt"
|
|
message="Unnecessary; SDK_INT is always >= 14"
|
|
errorLine1=" } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {"
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="src/main/java/net/simonvt/menudrawer/compat/ActionBarHelper.java"
|
|
line="79"
|
|
column="20"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="ObsoleteSdkInt"
|
|
message="Unnecessary; SDK_INT is always >= 14"
|
|
errorLine1=" if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.FROYO) {"
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="src/main/java/net/simonvt/menudrawer/DraggableDrawer.java"
|
|
line="572"
|
|
column="13"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="ObsoleteSdkInt"
|
|
message="Unnecessary; SDK_INT is always >= 14"
|
|
errorLine1=" if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.FROYO) {"
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="src/main/java/net/simonvt/menudrawer/DraggableDrawer.java"
|
|
line="580"
|
|
column="13"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="ObsoleteSdkInt"
|
|
message="Unnecessary; SDK_INT is always >= 14"
|
|
errorLine1=" if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {"
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="src/main/java/net/simonvt/menudrawer/DraggableDrawer.java"
|
|
line="588"
|
|
column="13"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="ObsoleteSdkInt"
|
|
message="Unnecessary; SDK_INT is always >= 14"
|
|
errorLine1=" if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {"
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="src/main/java/net/simonvt/menudrawer/DraggableDrawer.java"
|
|
line="596"
|
|
column="13"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="FloatMath"
|
|
message="Use `java.lang.Math#sqrt` instead of `android.util.FloatMath#sqrt()` since it is faster as of API 8"
|
|
errorLine1=" float hyp = FloatMath.sqrt(dx * dx + dy * dy);"
|
|
errorLine2=" ~~~~~~~~~~~~~~">
|
|
<location
|
|
file="src/main/java/net/simonvt/menudrawer/Scroller.java"
|
|
line="374"
|
|
column="25"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="FloatMath"
|
|
message="Use `java.lang.Math#sqrt` instead of `android.util.FloatMath#sqrt()` since it is faster as of API 8"
|
|
errorLine1=" float velocity = FloatMath.sqrt(velocityX * velocityX + velocityY * velocityY);"
|
|
errorLine2=" ~~~~~~~~~~~~~~">
|
|
<location
|
|
file="src/main/java/net/simonvt/menudrawer/Scroller.java"
|
|
line="391"
|
|
column="26"/>
|
|
</issue>
|
|
|
|
</issues>
|