• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="UTF-8"?>
2<issues format="4" by="lint 3.0.0">
3
4    <issue
5        id="RecyclerView"
6        message="Do not treat position as fixed; only use immediately and call `holder.getAdapterPosition()` to look it up later"
7        errorLine1="        public void onBindViewHolder(ViewHolder holder, final int position) {"
8        errorLine2="                                                        ~~~~~~~~~~~~~~~~~~">
9        <location
10            file="src/main/java/com/example/android/support/wear/app/MainDemoActivity.java"
11            line="100"
12            column="57"/>
13    </issue>
14
15    <issue
16        id="WearStandaloneAppFlag"
17        message="Missing `&lt;meta-data android:name=&quot;com.google.android.wearable.standalone&quot; ../>` element"
18        errorLine1="    &lt;application android:icon=&quot;@drawable/app_sample_code&quot; android:label=&quot;SupportWearDemos&quot;"
19        errorLine2="    ^">
20        <location
21            file="src/main/AndroidManifest.xml"
22            line="24"
23            column="5"/>
24    </issue>
25
26    <issue
27        id="AllowBackup"
28        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"
29        errorLine1="    &lt;application android:icon=&quot;@drawable/app_sample_code&quot; android:label=&quot;SupportWearDemos&quot;"
30        errorLine2="    ^">
31        <location
32            file="src/main/AndroidManifest.xml"
33            line="24"
34            column="5"/>
35    </issue>
36
37    <issue
38        id="AllowBackup"
39        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)"
40        errorLine1="    &lt;application android:icon=&quot;@drawable/app_sample_code&quot; android:label=&quot;SupportWearDemos&quot;"
41        errorLine2="    ^">
42        <location
43            file="src/main/AndroidManifest.xml"
44            line="24"
45            column="5"/>
46    </issue>
47
48    <issue
49        id="MergeRootFrame"
50        message="This `&lt;FrameLayout>` can be replaced with a `&lt;merge>` tag"
51        errorLine1="&lt;FrameLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;"
52        errorLine2="^">
53        <location
54            file="src/main/res/layout/cpl_demo.xml"
55            line="18"
56            column="1"/>
57    </issue>
58
59    <issue
60        id="MergeRootFrame"
61        message="This `&lt;FrameLayout>` can be replaced with a `&lt;merge>` tag"
62        errorLine1="&lt;FrameLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;"
63        errorLine2="^">
64        <location
65            file="src/main/res/layout/rd_demo.xml"
66            line="18"
67            column="1"/>
68    </issue>
69
70    <issue
71        id="IconLocation"
72        message="Found bitmap drawable `res/drawable/app_sample_code.png` in densityless folder">
73        <location
74            file="src/main/res/drawable/app_sample_code.png"/>
75    </issue>
76
77    <issue
78        id="GoogleAppIndexingWarning"
79        message="App is not indexable by Google Search; consider adding at least one Activity with an ACTION-VIEW intent filter. See issue explanation for more details."
80        errorLine1="    &lt;application android:icon=&quot;@drawable/app_sample_code&quot; android:label=&quot;SupportWearDemos&quot;"
81        errorLine2="    ^">
82        <location
83            file="src/main/AndroidManifest.xml"
84            line="24"
85            column="5"/>
86    </issue>
87
88    <issue
89        id="ContentDescription"
90        message="Missing `contentDescription` attribute on image"
91        errorLine1="    &lt;ImageView"
92        errorLine2="    ^">
93        <location
94            file="src/main/res/layout/rd_demo.xml"
95            line="23"
96            column="5"/>
97    </issue>
98
99    <issue
100        id="SetTextI18n"
101        message="String literal in `setText` can not be translated. Use Android resources instead."
102        errorLine1="            mStateTextView.setText(&quot;Ambient&quot;);"
103        errorLine2="                                   ~~~~~~~~~">
104        <location
105            file="src/main/java/com/example/android/support/wear/app/AmbientModeDemo.java"
106            line="52"
107            column="36"/>
108    </issue>
109
110    <issue
111        id="SetTextI18n"
112        message="String literal in `setText` can not be translated. Use Android resources instead."
113        errorLine1="            mStateTextView.setText(&quot;Interactive&quot;);"
114        errorLine2="                                   ~~~~~~~~~~~~~">
115        <location
116            file="src/main/java/com/example/android/support/wear/app/AmbientModeDemo.java"
117            line="60"
118            column="36"/>
119    </issue>
120
121    <issue
122        id="SetTextI18n"
123        message="Do not concatenate text displayed with `setText`. Use resource string with placeholders."
124        errorLine1="            holder.mView.setText(&quot;Holder at position &quot; + position);"
125        errorLine2="                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
126        <location
127            file="src/main/java/com/example/android/support/wear/app/SimpleWearableRecyclerViewDemo.java"
128            line="66"
129            column="34"/>
130    </issue>
131
132    <issue
133        id="SetTextI18n"
134        message="String literal in `setText` can not be translated. Use Android resources instead."
135        errorLine1="            holder.mView.setText(&quot;Holder at position &quot; + position);"
136        errorLine2="                                 ~~~~~~~~~~~~~~~~~~~~~">
137        <location
138            file="src/main/java/com/example/android/support/wear/app/SimpleWearableRecyclerViewDemo.java"
139            line="66"
140            column="34"/>
141    </issue>
142
143    <issue
144        id="HardcodedText"
145        message="Hardcoded string &quot;Item 1&quot;, should use `@string` resource"
146        errorLine1="    &lt;item android:title=&quot;Item 1&quot; android:id=&quot;@+id/item_1&quot; android:icon=&quot;@android:drawable/ic_menu_add&quot;/>"
147        errorLine2="          ~~~~~~~~~~~~~~~~~~~~~~">
148        <location
149            file="src/main/res/menu/action_drawer_menu.xml"
150            line="3"
151            column="11"/>
152    </issue>
153
154    <issue
155        id="HardcodedText"
156        message="Hardcoded string &quot;Item 2&quot;, should use `@string` resource"
157        errorLine1="    &lt;item android:title=&quot;Item 2&quot; android:id=&quot;@+id/item_2&quot; android:icon=&quot;@android:drawable/ic_menu_agenda&quot;/>"
158        errorLine2="          ~~~~~~~~~~~~~~~~~~~~~~">
159        <location
160            file="src/main/res/menu/action_drawer_menu.xml"
161            line="4"
162            column="11"/>
163    </issue>
164
165    <issue
166        id="HardcodedText"
167        message="Hardcoded string &quot;Item 3&quot;, should use `@string` resource"
168        errorLine1="    &lt;item android:title=&quot;Item 3&quot; android:id=&quot;@+id/item_3&quot; android:icon=&quot;@android:drawable/ic_menu_call&quot;/>"
169        errorLine2="          ~~~~~~~~~~~~~~~~~~~~~~">
170        <location
171            file="src/main/res/menu/action_drawer_menu.xml"
172            line="5"
173            column="11"/>
174    </issue>
175
176    <issue
177        id="HardcodedText"
178        message="Hardcoded string &quot;Item 4&quot;, should use `@string` resource"
179        errorLine1="    &lt;item android:title=&quot;Item 4&quot; android:id=&quot;@+id/item_4&quot; android:icon=&quot;@android:drawable/ic_menu_delete&quot;/>"
180        errorLine2="          ~~~~~~~~~~~~~~~~~~~~~~">
181        <location
182            file="src/main/res/menu/action_drawer_menu.xml"
183            line="6"
184            column="11"/>
185    </issue>
186
187    <issue
188        id="HardcodedText"
189        message="Hardcoded string &quot;hello world!!&quot;, should use `@string` resource"
190        errorLine1="        android:text=&quot;hello world!!&quot;/>"
191        errorLine2="        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
192        <location
193            file="src/main/res/layout/ambient_demo.xml"
194            line="26"
195            column="9"/>
196    </issue>
197
198    <issue
199        id="HardcodedText"
200        message="Hardcoded string &quot;FrameLayout&quot;, should use `@string` resource"
201        errorLine1="        android:text=&quot;FrameLayout&quot;/>"
202        errorLine2="        ~~~~~~~~~~~~~~~~~~~~~~~~~~">
203        <location
204            file="src/main/res/layout/wearable_drawers_frame_layout_demo.xml"
205            line="26"
206            column="9"/>
207    </issue>
208
209    <issue
210        id="HardcodedText"
211        message="Hardcoded string &quot;ScrollView Fragment&quot;, should use `@string` resource"
212        errorLine1="            android:text=&quot;ScrollView Fragment&quot;"
213        errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
214        <location
215            file="src/main/res/layout/wearable_drawers_scroll_view_demo.xml"
216            line="35"
217            column="13"/>
218    </issue>
219
220</issues>
221