spotbugs-exclude.xml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <FindBugsFilter
  3. xmlns="https://github.com/spotbugs/filter/4.8.4"
  4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5. xsi:schemaLocation="https://github.com/spotbugs/filter/4.8.4 https://raw.githubusercontent.com/spotbugs/spotbugs/4.8.4/spotbugs/etc/findbugsfilter.xsd">
  6. <Match>
  7. <Or>
  8. <Bug pattern="S508C_NON_TRANSLATABLE_STRING" />
  9. <Bug pattern="USBR_UNNECESSARY_STORE_BEFORE_RETURN" />
  10. <Bug pattern="DRE_DECLARED_RUNTIME_EXCEPTION" />
  11. <Bug pattern="CT_CONSTRUCTOR_THROW" />
  12. <Bug pattern="LG_LOST_LOGGER_DUE_TO_WEAK_REFERENCE" />
  13. <Bug pattern="CC_CYCLOMATIC_COMPLEXITY" />
  14. </Or>
  15. </Match>
  16. <Match>
  17. <Bug pattern="S508C_SET_COMP_COLOR" />
  18. <Class name="battleship.ui.playgroundmatrix.PlaygroundMatrix" />
  19. </Match>
  20. <Match>
  21. <Bug pattern="EI_EXPOSE_REP" />
  22. <Class name="battleship.ui.gamewindow.GameWindow" />
  23. <Or>
  24. <Method name="getOpponentField" />
  25. <Method name="getPlayersField" />
  26. </Or>
  27. </Match>
  28. <Match>
  29. <Bug pattern="EI_EXPOSE_REP2" />
  30. <Or>
  31. <Class name="battleship.network.Connection" />
  32. <Class name="battleship.game.GameSession" />
  33. </Or>
  34. </Match>
  35. <Match>
  36. <And>
  37. <Confidence value="3" />
  38. <Not>
  39. <Bug code="AI" />
  40. </Not>
  41. </And>
  42. </Match>
  43. </FindBugsFilter>