Xml文件  |  96行  |  3.72 KB

<?xml version="1.0" encoding="UTF-8"?>
<issues format="4" by="lint 3.0.0">

    <issue
        id="AllowBackup"
        message="On SDK version 23 and up, your app data will be automatically backed up and restored on app install. Consider adding the attribute `android:fullBackupContent` to specify an `@xml` resource which configures which files to backup. More info: https://developer.android.com/training/backup/autosyncapi.html"
        errorLine1="    &lt;application android:label=&quot;@string/app_name&quot;>"
        errorLine2="    ^">
        <location
            file="src/main/AndroidManifest.xml"
            line="21"
            column="5"/>
    </issue>

    <issue
        id="AllowBackup"
        message="Should explicitly set `android:allowBackup` to `true` or `false` (it&apos;s `true` by default, and that can have some security implications for the application&apos;s data)"
        errorLine1="    &lt;application android:label=&quot;@string/app_name&quot;>"
        errorLine2="    ^">
        <location
            file="src/main/AndroidManifest.xml"
            line="21"
            column="5"/>
    </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/com/example/android/support/appnavigation/app/ActionBarCompat.java"
            line="38"
            column="13"/>
    </issue>

    <issue
        id="ObsoleteSdkInt"
        message="This folder configuration (`v11`) is unnecessary; `minSdkVersion` is 14. Merge all the resources in this folder into `values`.">
        <location
            file="src/main/res/values-v11"/>
    </issue>

    <issue
        id="ObsoleteSdkInt"
        message="This folder configuration (`v14`) is unnecessary; `minSdkVersion` is 14. Merge all the resources in this folder into `values`.">
        <location
            file="src/main/res/values-v14"/>
    </issue>

    <issue
        id="MissingApplicationIcon"
        message="Should explicitly set `android:icon`, there is no default"
        errorLine1="    &lt;application android:label=&quot;@string/app_name&quot;>"
        errorLine2="    ^">
        <location
            file="src/main/AndroidManifest.xml"
            line="21"
            column="5"/>
    </issue>

    <issue
        id="AppLinkUrlError"
        message="Missing URL"
        errorLine1="            &lt;intent-filter>"
        errorLine2="            ^">
        <location
            file="src/main/AndroidManifest.xml"
            line="72"
            column="13"/>
    </issue>

    <issue
        id="SetTextI18n"
        message="String literal in `setText` can not be translated. Use Android resources instead."
        errorLine1="            tv.setText(&quot;Viewing content from ACTION_VIEW&quot;);"
        errorLine2="                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
        <location
            file="src/main/java/com/example/android/support/appnavigation/app/ContentViewActivity.java"
            line="44"
            column="24"/>
    </issue>

    <issue
        id="SetTextI18n"
        message="Do not concatenate text displayed with `setText`. Use resource string with placeholders."
        errorLine1="        tv.setText(getResources().getText(R.string.peer_count).toString() + mPeerCount);"
        errorLine2="                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
        <location
            file="src/main/java/com/example/android/support/appnavigation/app/PeerActivity.java"
            line="45"
            column="20"/>
    </issue>

</issues>