spotbugs-exclude.xml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!-- This file specifies a spotbugs filter for excluding reports that
  2. should not be considered errors.
  3. The format of this file is documented at:
  4. https://spotbugs.readthedocs.io/en/latest/filter.html
  5. When possible, please specify the full names of the bug codes,
  6. using the pattern attribute, to make it clearer what reports are
  7. being suppressed. You can find a listing of codes at:
  8. https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html
  9. -->
  10. <FindBugsFilter>
  11. <!-- Won't use prepared statements, very bad performance for geospatial use cases -->
  12. <Match>
  13. <Bug pattern="SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE"/>
  14. </Match>
  15. <Match>
  16. <Bug pattern="SQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING"/>
  17. </Match>
  18. <!-- Returns moslty false positives -->
  19. <Match>
  20. <Bug pattern="FE_FLOATING_POINT_EQUALITY"/>
  21. </Match>
  22. <!-- Too many cases where we have a semi-legit usage of same name -->
  23. <Match>
  24. <Bug pattern="NM_SAME_SIMPLE_NAME_AS_SUPERCLASS"/>
  25. </Match>
  26. <!-- False positives, might want to revisit later -->
  27. <Match>
  28. <Bug pattern="EC_UNRELATED_TYPES_USING_POINTER_EQUALITY"/>
  29. </Match>
  30. <!-- Annoying but not actually a bug per se, might want to revisit later -->
  31. <Match>
  32. <Bug pattern="MF_CLASS_MASKS_FIELD"/>
  33. </Match>
  34. <!-- False positives -->
  35. <Match>
  36. <Bug pattern="UWF_UNWRITTEN_FIELD"/>
  37. </Match>
  38. <!-- Too many false positives -->
  39. <Match>
  40. <Bug pattern="CN_IMPLEMENTS_CLONE_BUT_NOT_CLONEABLE"/>
  41. </Match>
  42. <!-- Too many false positives -->
  43. <Match>
  44. <Bug pattern="NP_NULL_ON_SOME_PATH_MIGHT_BE_INFEASIBLE"/>
  45. </Match>
  46. <!-- Too many false positives -->
  47. <Match>
  48. <Bug pattern="NP_BOOLEAN_RETURN_NULL"/>
  49. </Match>
  50. <!-- False positives under Java 11, see https://github.com/spotbugs/spotbugs/issues/878
  51. and https://github.com/spotbugs/spotbugs/issues/756 -->
  52. <Match>
  53. <Bug pattern="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/>
  54. </Match>
  55. </FindBugsFilter>