lint-baseline.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <issues format="6" by="lint 7.4.0-alpha05" type="baseline" client="" dependencies="true" name="" variant="all" version="7.4.0-alpha05">
  3. <issue
  4. id="LintError"
  5. message="../../remoting/android/lint-baseline.xml (relative to /usr/local/google/home/wnwen/z1/src/out/Debug) does not exist"
  6. errorLine1=" &lt;baseline file=&quot;../../remoting/android/lint-baseline.xml&quot;/>"
  7. errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
  8. <location
  9. file="project.xml"
  10. line="5"
  11. column="3"/>
  12. </issue>
  13. <issue
  14. id="WrongConstant"
  15. message="Must be one or more of: Gravity.LEFT, Gravity.RIGHT, GravityCompat.START, GravityCompat.END, Gravity.NO_GRAVITY"
  16. errorLine1=" if (mDrawerLayout.isDrawerOpen(Gravity.START)) {"
  17. errorLine2=" ~~~~~~~~~~~~~">
  18. <location
  19. file="$SRC/remoting/android/java/src/org/chromium/chromoting/Chromoting.java"
  20. line="204"
  21. column="40"/>
  22. </issue>
  23. <issue
  24. id="WrongConstant"
  25. message="Must be one or more of: Gravity.LEFT, Gravity.RIGHT, GravityCompat.START, GravityCompat.END, Gravity.NO_GRAVITY"
  26. errorLine1=" mDrawerLayout.closeDrawer(Gravity.START);"
  27. errorLine2=" ~~~~~~~~~~~~~">
  28. <location
  29. file="$SRC/remoting/android/java/src/org/chromium/chromoting/Chromoting.java"
  30. line="205"
  31. column="39"/>
  32. </issue>
  33. <issue
  34. id="WrongConstant"
  35. message="Must be one or more of: Gravity.LEFT, Gravity.RIGHT, GravityCompat.START, GravityCompat.END, Gravity.NO_GRAVITY"
  36. errorLine1=" if (mDrawerLayout.isDrawerOpen(Gravity.START)) {"
  37. errorLine2=" ~~~~~~~~~~~~~">
  38. <location
  39. file="$SRC/remoting/android/java/src/org/chromium/chromoting/Chromoting.java"
  40. line="292"
  41. column="56"/>
  42. </issue>
  43. <issue
  44. id="WrongConstant"
  45. message="Must be one or more of: Gravity.LEFT, Gravity.RIGHT, GravityCompat.START, GravityCompat.END, Gravity.NO_GRAVITY"
  46. errorLine1=" mDrawerLayout.closeDrawer(Gravity.START);"
  47. errorLine2=" ~~~~~~~~~~~~~">
  48. <location
  49. file="$SRC/remoting/android/java/src/org/chromium/chromoting/Chromoting.java"
  50. line="293"
  51. column="55"/>
  52. </issue>
  53. <issue
  54. id="WrongConstant"
  55. message="Must be one or more of: Gravity.LEFT, Gravity.RIGHT, GravityCompat.START, GravityCompat.END, Gravity.NO_GRAVITY"
  56. errorLine1=" mDrawerLayout.openDrawer(Gravity.START);"
  57. errorLine2=" ~~~~~~~~~~~~~">
  58. <location
  59. file="$SRC/remoting/android/java/src/org/chromium/chromoting/Chromoting.java"
  60. line="295"
  61. column="54"/>
  62. </issue>
  63. <issue
  64. id="WrongConstant"
  65. message="Must be one of: InputMode.UNKNOWN, InputMode.TRACKPAD, InputMode.TOUCH"
  66. errorLine1=" for (int i = 0; i &lt; InputMode.NUM_ENTRIES; i++) {"
  67. errorLine2=" ~~~~~~~~~~~">
  68. <location
  69. file="$SRC/remoting/android/java/src/org/chromium/chromoting/Desktop.java"
  70. line="351"
  71. column="39"/>
  72. </issue>
  73. <issue
  74. id="UseCompatTextViewDrawableXml"
  75. message="Use `app:drawableStartCompat` instead of `android:drawableStart`"
  76. errorLine1=" android:drawableStart=&quot;@drawable/ic_host_online&quot;"
  77. errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
  78. <location
  79. file="$SRC/remoting/android/java/res/layout/host_online.xml"
  80. line="28"
  81. column="9"/>
  82. </issue>
  83. <issue
  84. id="SetJavaScriptEnabled"
  85. message="Using `setJavaScriptEnabled` can introduce XSS vulnerabilities into your application, review carefully"
  86. errorLine1=" mWebView.getSettings().setJavaScriptEnabled(true);"
  87. errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
  88. <location
  89. file="$SRC/remoting/android/java/src/org/chromium/chromoting/help/HelpActivity.java"
  90. line="91"
  91. column="9"/>
  92. </issue>
  93. <issue
  94. id="SetJavaScriptEnabled"
  95. message="Using `setJavaScriptEnabled` can introduce XSS vulnerabilities into your application, review carefully"
  96. errorLine1=" webView.getSettings().setJavaScriptEnabled(true);"
  97. errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
  98. <location
  99. file="$SRC/remoting/android/java/src/org/chromium/chromoting/WebViewActivity.java"
  100. line="46"
  101. column="9"/>
  102. </issue>
  103. <issue
  104. id="DataExtractionRules"
  105. message="The attribute `android:allowBackup` is deprecated from Android 12 and higher and may be removed in future versions. Consider adding the attribute `android:dataExtractionRules` specifying an `@xml` resource which configures cloud backups and device transfers on Android 12 and higher."
  106. errorLine1=" &lt;application android:label=&quot;@string/product_name_android&quot; android:name=&quot;org.chromium.chromoting.RemotingApplication&quot; android:icon=&quot;@mipmap/ic_launcher&quot; android:theme=&quot;@style/BaseTheme&quot; android:allowBackup=&quot;false&quot; android:resizeableActivity=&quot;true&quot; android:supportsPictureInPicture=&quot;false&quot;>"
  107. errorLine2=" ~~~~~">
  108. <location
  109. file="gen/remoting/android/remoting_apk__lint/gen/remoting/android/AndroidManifest.xml"
  110. line="16"
  111. column="209"/>
  112. </issue>
  113. <issue
  114. id="ObsoleteSdkInt"
  115. message="Unnecessary; SDK_INT is always >= 23"
  116. errorLine1=" if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {"
  117. errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
  118. <location
  119. file="$SRC/remoting/android/java/src/org/chromium/chromoting/accountswitcher/AccountManagerCompat.java"
  120. line="25"
  121. column="13"/>
  122. </issue>
  123. <issue
  124. id="ObsoleteSdkInt"
  125. message="Unnecessary; SDK_INT is always >= 23"
  126. errorLine1=" if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {"
  127. errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
  128. <location
  129. file="$SRC/remoting/android/java/src/org/chromium/chromoting/Chromoting.java"
  130. line="628"
  131. column="13"/>
  132. </issue>
  133. <issue
  134. id="ObsoleteSdkInt"
  135. message="Unnecessary; SDK_INT is always >= 23"
  136. errorLine1=" if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {"
  137. errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
  138. <location
  139. file="$SRC/remoting/android/java/src/org/chromium/chromoting/Desktop.java"
  140. line="183"
  141. column="13"/>
  142. </issue>
  143. <issue
  144. id="ObsoleteSdkInt"
  145. message="Unnecessary; SDK_INT is always >= 23"
  146. errorLine1=" } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {"
  147. errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
  148. <location
  149. file="$SRC/remoting/android/java/src/org/chromium/chromoting/Desktop.java"
  150. line="221"
  151. column="20"/>
  152. </issue>
  153. <issue
  154. id="ObsoleteSdkInt"
  155. message="Unnecessary; SDK_INT is always >= 23"
  156. errorLine1=" if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {"
  157. errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
  158. <location
  159. file="$SRC/remoting/android/java/src/org/chromium/chromoting/Desktop.java"
  160. line="280"
  161. column="13"/>
  162. </issue>
  163. <issue
  164. id="ObsoleteSdkInt"
  165. message="Unnecessary; SDK_INT is always >= 23"
  166. errorLine1=" if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {"
  167. errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
  168. <location
  169. file="$SRC/remoting/android/java/src/org/chromium/chromoting/Desktop.java"
  170. line="512"
  171. column="13"/>
  172. </issue>
  173. <issue
  174. id="ObsoleteSdkInt"
  175. message="Unnecessary; SDK_INT is always >= 23"
  176. errorLine1=" if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {"
  177. errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
  178. <location
  179. file="$SRC/remoting/android/java/src/org/chromium/chromoting/Desktop.java"
  180. line="521"
  181. column="13"/>
  182. </issue>
  183. <issue
  184. id="ObsoleteSdkInt"
  185. message="Unnecessary; SDK_INT is always >= 23"
  186. errorLine1=" if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {"
  187. errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
  188. <location
  189. file="$SRC/remoting/android/java/src/org/chromium/chromoting/Desktop.java"
  190. line="605"
  191. column="13"/>
  192. </issue>
  193. <issue
  194. id="MonochromeLauncherIcon"
  195. message="The application adaptive icon is missing a monochrome tag"
  196. errorLine1="&lt;adaptive-icon xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;>"
  197. errorLine2="^">
  198. <location
  199. file="$SRC/remoting/android/java/res/mipmap-anydpi-v26/ic_launcher.xml"
  200. line="2"
  201. column="1"/>
  202. </issue>
  203. <issue
  204. id="ClickableViewAccessibility"
  205. message="Custom view `DesktopView` overrides `onTouchEvent` but not `performClick`"
  206. errorLine1=" public final boolean onTouchEvent(MotionEvent event) {"
  207. errorLine2=" ~~~~~~~~~~~~">
  208. <location
  209. file="$SRC/remoting/android/java/src/org/chromium/chromoting/DesktopView.java"
  210. line="85"
  211. column="26"/>
  212. </issue>
  213. <issue
  214. id="RtlEnabled"
  215. message="The project references RTL attributes, but does not explicitly enable or disable RTL support with `android:supportsRtl` in the manifest">
  216. <location
  217. file="gen/remoting/android/remoting_apk__lint/gen/remoting/android/AndroidManifest.xml"/>
  218. </issue>
  219. </issues>