spotbugs-filter.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Nextcloud Talk application
  4. ~
  5. ~ @author Mario Danic
  6. ~ @author Andy Scherzinger
  7. ~ @author Tim Krüger
  8. ~ Copyright (C) 2021 Tim Krüger <t@timkrueger.me>
  9. ~ Copyright (C) 2021 Andy Scherzinger <info@andy-scherzinger.de>
  10. ~ Copyright (C) 2017-2019 Mario Danic <mario@lovelyhq.com>
  11. ~
  12. ~ This program is free software: you can redistribute it and/or modify
  13. ~ it under the terms of the GNU General Public License as published by
  14. ~ the Free Software Foundation, either version 3 of the License, or
  15. ~ at your option) any later version.
  16. ~
  17. ~ This program is distributed in the hope that it will be useful,
  18. ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. ~ GNU General Public License for more details.
  21. ~
  22. ~ You should have received a copy of the GNU General Public License
  23. ~ along with this program. If not, see <http://www.gnu.org/licenses/>.
  24. -->
  25. <FindBugsFilter>
  26. <Match>
  27. <Class name="~.*\.Manifest\$.*" />
  28. </Match>
  29. <Match>
  30. <Class name="~.*\.R\$.*" />
  31. </Match>
  32. <Match>
  33. <Class name="~.*\$\$Parcelable.*" />
  34. </Match>
  35. <!-- Room code is autogenerated. Exclude it from Check. -->
  36. <Match>
  37. <Class name="~.*\.TalkDatabase_Impl.*" />
  38. </Match>
  39. <Match>
  40. <Class name="~.*\.UsersDao_Impl.*" />
  41. </Match>
  42. <Match>
  43. <Class name="~.*\.ArbitraryStoragesDao_Impl.*" />
  44. </Match>
  45. <!-- JSON/Data classes with generated accessor methods -->
  46. <Match>
  47. <Class name="~com\.nextcloud\.talk\.models\.json\.push.*" />
  48. </Match>
  49. <!-- Dagger code is autogenerated. Exclude it from Check. -->
  50. <Match>
  51. <Or>
  52. <Class name="~.*\.Dagger.*" />
  53. <Class name="~~.*\.dagger\.android\..*" />
  54. <Class name="~~.*\.dagger\.modules\..*" />
  55. </Or>
  56. </Match>
  57. <!-- Dagger generated code uses internal APIs -->
  58. <Match>
  59. <Or>
  60. <Class name="~.*\..*.*Factory" />
  61. <Class name="~.*\..*.*Factory_Impl" />
  62. </Or>
  63. <Bug pattern="IICU_INCORRECT_INTERNAL_CLASS_USE" />
  64. </Match>
  65. <!-- Data bindings autogenerated classes -->
  66. <Match>
  67. <Or>
  68. <Class name="~.*BindingImpl" />
  69. <Class name="~.*\.DataBinderMapperImpl" />
  70. <Class name="~.*Binding" />
  71. </Or>
  72. </Match>
  73. <!-- Ignore generated JsonObjectMapper -->
  74. <Match>
  75. <Class name="~.*\$\$JsonObjectMapper.*" />
  76. </Match>
  77. <!-- Third-party library code -->
  78. <Match>
  79. <Or>
  80. <Package name="~third\.parties\..*" />
  81. </Or>
  82. </Match>
  83. <Bug pattern="PATH_TRAVERSAL_IN" />
  84. <Bug pattern="ANDROID_EXTERNAL_FILE_ACCESS" />
  85. <Bug pattern="BAS_BLOATED_ASSIGNMENT_SCOPE" />
  86. <Bug pattern="IMC_IMMATURE_CLASS_BAD_SERIALVERSIONUID" />
  87. <Bug pattern="EI_EXPOSE_REP" />
  88. <Bug pattern="EI_EXPOSE_REP2" />
  89. <!-- This is unmanageable for now due to large amount of interconnected static state -->
  90. <Bug pattern="FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY" />
  91. <!--Autogenerated Room classes-->
  92. <Match>
  93. <Class name="~.*\.TalkDatabase_Impl.*" />
  94. </Match>
  95. <Match>
  96. <Class name="~.*\..*Dao_Impl.*" />
  97. </Match>
  98. </FindBugsFilter>