Lint Report: 16 errors
Issue Types

Overview

Correctness
2error ResourceType: Wrong Resource Type
1error WifiManagerLeak: WifiManager Leak
Correctness:Messages
13error MissingTranslation: Incomplete translation
Disabled Checks (250)

Wrong Resource Type

../../src/main/java/org/connectbot/HostListActivity.java:542: Expected resource of type style
 539                 holder.caption.setTextColor(chosen);
 540             } else {
 541                 // selected, so revert back to default black text
 542                 holder.nickname.setTextAppearance(context, android.R.attr.textAppearanceLarge);                 
 543                 holder.caption.setTextAppearance(context, android.R.attr.textAppearanceSmall);
 544             }
../../src/main/java/org/connectbot/HostListActivity.java:543: Expected resource of type style
 540             } else {
 541                 // selected, so revert back to default black text
 542                 holder.nickname.setTextAppearance(context, android.R.attr.textAppearanceLarge);
 543                 holder.caption.setTextAppearance(context, android.R.attr.textAppearanceSmall);                  
 544             }
 545 
 546             long now = System.currentTimeMillis() / 1000;
ResourceType Correctness Fatal Priority 7/10

WifiManager Leak

../../src/main/java/org/connectbot/service/ConnectivityReceiver.java:40: The WIFI_SERVICE must be looked up on the Application context or memory will leak on devices < Android N. Try changing manager to manager.getApplicationContext()
  37         final ConnectivityManager cm =
  38                 (ConnectivityManager) manager.getSystemService(Context.CONNECTIVITY_SERVICE);
  39 
  40         final WifiManager wm = (WifiManager) manager.getSystemService(Context.WIFI_SERVICE);              
  41         mWifiLock = wm.createWifiLock(TAG);
  42 
  43         final NetworkInfo info = cm.getActiveNetworkInfo();
WifiManagerLeak Correctness Fatal Priority 6/10

Incomplete translation

../../src/main/res/values/arrays.xml:22: "list_emulation_modes" is not translated in "af" (Afrikaans), "be" (Belarusian), "bg" (Bulgarian), "ca" (Catalan), "cs" (Czech), "da" (Danish), "de" (German), "es" (Spanish), "eu" (Basque), "fi" (Finnish), "fr" (French), "gl" (Galician), "hu" (Hungarian), "id" (Indonesian), "it" (Italian), "ja" (Japanese), "ko" (Korean), "lt" (Lithuanian), "nb" (Norwegian Bokmål), "nl" (Dutch), "oc" (Occitan (post 1500); Provençal), "pl" (Polish), "pt" (Portuguese), "pt-BR" (Portuguese: Brazil), "ru" (Russian), "sk" (Slovak), "sl" (Slovenian), "sv" (Swedish), "tr" (Turkish), "uk" (Ukrainian), "vi" (Vietnamese), "zh-CN" (Chinese: China), "zh-TW" (Chinese: Taiwan)
  19 -->
  20 <resources>
  21 
  22     <string-array name="list_emulation_modes">                                                         
  23         <item>xterm-color</item>
  24         <item>xterm-256color</item>
  25         <item>xterm</item>
../../src/main/res/values/arrays.xml:38: "list_rotation_values" is not translated in "af" (Afrikaans), "be" (Belarusian), "bg" (Bulgarian), "ca" (Catalan), "cs" (Czech), "da" (Danish), "de" (German), "es" (Spanish), "eu" (Basque), "fi" (Finnish), "fr" (French), "gl" (Galician), "hu" (Hungarian), "id" (Indonesian), "it" (Italian), "ja" (Japanese), "ko" (Korean), "lt" (Lithuanian), "nb" (Norwegian Bokmål), "nl" (Dutch), "oc" (Occitan (post 1500); Provençal), "pl" (Polish), "pt" (Portuguese), "pt-BR" (Portuguese: Brazil), "ru" (Russian), "sk" (Slovak), "sl" (Slovenian), "sv" (Swedish), "tr" (Turkish), "uk" (Ukrainian), "vi" (Vietnamese), "zh-CN" (Chinese: China), "zh-TW" (Chinese: Taiwan)
  35         <item>@string/list_rotation_auto</item>
  36     </string-array>
  37 
  38     <string-array name="list_rotation_values">                                                         
  39         <item>Default</item>
  40         <item>Force landscape</item>
  41         <item>Force portrait</item>
../../src/main/res/values/arrays.xml:53: "list_camera_values" is not translated in "af" (Afrikaans), "be" (Belarusian), "bg" (Bulgarian), "ca" (Catalan), "cs" (Czech), "da" (Danish), "de" (German), "es" (Spanish), "eu" (Basque), "fi" (Finnish), "fr" (French), "gl" (Galician), "hu" (Hungarian), "id" (Indonesian), "it" (Italian), "ja" (Japanese), "ko" (Korean), "lt" (Lithuanian), "nb" (Norwegian Bokmål), "nl" (Dutch), "oc" (Occitan (post 1500); Provençal), "pl" (Polish), "pt" (Portuguese), "pt-BR" (Portuguese: Brazil), "ru" (Russian), "sk" (Slovak), "sl" (Slovenian), "sv" (Swedish), "tr" (Turkish), "uk" (Ukrainian), "vi" (Vietnamese), "zh-CN" (Chinese: China), "zh-TW" (Chinese: Taiwan)
  50         <item>@string/list_camera_none</item>
  51     </string-array>
  52 
  53     <string-array name="list_camera_values">                                                           
  54         <item>Ctrl+A then Space</item>
  55         <item>Ctrl+A</item>
  56         <item>Esc</item>
../../src/main/res/values/arrays.xml:68: "list_color_values" is not translated in "af" (Afrikaans), "be" (Belarusian), "bg" (Bulgarian), "ca" (Catalan), "cs" (Czech), "da" (Danish), "de" (German), "es" (Spanish), "eu" (Basque), "fi" (Finnish), "fr" (French), "gl" (Galician), "hu" (Hungarian), "id" (Indonesian), "it" (Italian), "ja" (Japanese), "ko" (Korean), "lt" (Lithuanian), "nb" (Norwegian Bokmål), "nl" (Dutch), "oc" (Occitan (post 1500); Provençal), "pl" (Polish), "pt" (Portuguese), "pt-BR" (Portuguese: Brazil), "ru" (Russian), "sk" (Slovak), "sl" (Slovenian), "sv" (Swedish), "tr" (Turkish), "uk" (Ukrainian), "vi" (Vietnamese), "zh-CN" (Chinese: China), "zh-TW" (Chinese: Taiwan)
  65         <item>@string/color_gray</item>
  66     </string-array>
  67 
  68     <string-array name="list_color_values">                                                            
  69         <item>red</item>
  70         <item>green</item>
  71         <item>blue</item>
../../src/main/res/values/arrays.xml:81: "list_update_values" is not translated in "af" (Afrikaans), "be" (Belarusian), "bg" (Bulgarian), "ca" (Catalan), "cs" (Czech), "da" (Danish), "de" (German), "es" (Spanish), "eu" (Basque), "fi" (Finnish), "fr" (French), "gl" (Galician), "hu" (Hungarian), "id" (Indonesian), "it" (Italian), "ja" (Japanese), "ko" (Korean), "lt" (Lithuanian), "nb" (Norwegian Bokmål), "nl" (Dutch), "oc" (Occitan (post 1500); Provençal), "pl" (Polish), "pt" (Portuguese), "pt-BR" (Portuguese: Brazil), "ru" (Russian), "sk" (Slovak), "sl" (Slovenian), "sv" (Swedish), "tr" (Turkish), "uk" (Ukrainian), "vi" (Vietnamese), "zh-CN" (Chinese: China), "zh-TW" (Chinese: Taiwan)
  78         <item>@string/list_update_never</item>
  79     </string-array>
  80 
  81     <string-array name="list_update_values">                                                           
  82         <item>Daily</item>
  83         <item>Weekly</item>
  84         <item>Never</item>
MissingTranslation Messages Correctness Fatal Priority 8/10

Disabled Checks

One or more issues were not run by lint, either because the check is not enabled by default, or because it was disabled with a command line flag or via one or more lint.xml configuration files in the project directories.

Suppressing Warnings and Errors

Lint errors can be suppressed in a variety of ways:

1. With a @SuppressLint annotation in the Java code
2. With a tools:ignore attribute in the XML file
3. With a //noinspection comment in the source code
4. With ignore flags specified in the build.gradle file, as explained below
5. With a lint.xml configuration file in the project
6. With a lint.xml configuration file passed to lint via the --config flag
7. With the --ignore flag passed to lint.

To suppress a lint warning with an annotation, add a @SuppressLint("id") annotation on the class, method or variable declaration closest to the warning instance you want to disable. The id can be one or more issue id's, such as "UnusedResources" or {"UnusedResources","UnusedIds"}, or it can be "all" to suppress all lint warnings in the given scope.

To suppress a lint warning with a comment, add a //noinspection id comment on the line before the statement with the error.

To suppress a lint warning in an XML file, add a tools:ignore="id" attribute on the element containing the error, or one of its surrounding elements. You also need to define the namespace for the tools prefix on the root element in your document, next to the xmlns:android declaration:
xmlns:tools="http://schemas.android.com/tools"

To suppress a lint warning in a build.gradle file, add a section like this:

android {
    lintOptions {
        disable 'TypographyFractions','TypographyQuotes'
    }
}

Here we specify a comma separated list of issue id's after the disable command. You can also use warning or error instead of disable to change the severity of issues.

To suppress lint warnings with a configuration XML file, create a file named lint.xml and place it at the root directory of the module in which it applies.

The format of the lint.xml file is something like the following:

<?xml version="1.0" encoding="UTF-8"?>
<lint>
    <!-- Disable this given check in this project -->
    <issue id="IconMissingDensityFolder" severity="ignore" />

    <!-- Ignore the ObsoleteLayoutParam issue in the given files -->
    <issue id="ObsoleteLayoutParam">
        <ignore path="res/layout/activation.xml" />
        <ignore path="res/layout-xlarge/activation.xml" />
    </issue>

    <!-- Ignore the UselessLeaf issue in the given file -->
    <issue id="UselessLeaf">
        <ignore path="res/layout/main.xml" />
    </issue>

    <!-- Change the severity of hardcoded strings to "error" -->
    <issue id="HardcodedText" severity="error" />
</lint>

To suppress lint checks from the command line, pass the --ignore flag with a comma separated list of ids to be suppressed, such as:
$ lint --ignore UnusedResources,UselessLeaf /my/project/path

For more information, see http://g.co/androidstudio/suppressing-lint-warnings