spotbugs-exclude.xml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <FindBugsFilter>
  3. <Match>
  4. <!-- Fluent APIs trigger this -->
  5. <Bug pattern="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT"/>
  6. </Match>
  7. <Match>
  8. <!-- forced GC only used in testing -->
  9. <Or>
  10. <Class name="io.opentelemetry.instrumentation.test.utils.GcUtils"/>
  11. <Class name="io.opentelemetry.javaagent.util.GcUtils"/>
  12. </Or>
  13. <Bug pattern="DM_GC"/>
  14. </Match>
  15. <Match>
  16. <!-- https://github.com/spotbugs/spotbugs/issues/573 kotlin is not well supported (yet) -->
  17. <Source name="~.*\.kt"/>
  18. </Match>
  19. <Match>
  20. <!-- final field warnings can be ignored for this test class -->
  21. <Class name="~muzzle\.TestClasses.*"/>
  22. <Bug pattern="MS_SHOULD_BE_FINAL"/>
  23. </Match>
  24. <Match>
  25. <!-- inner class serialization warning can be ignored for testing purposes -->
  26. <Class name="~HttpServletResponseTest\$.*"/>
  27. <Bug pattern="SE_BAD_FIELD_INNER_CLASS"/>
  28. </Match>
  29. <Match>
  30. <!-- inner class serialization warning can be ignored for testing purposes -->
  31. <Class name="~HttpServletTest\$.*"/>
  32. <Bug pattern="SE_BAD_FIELD_INNER_CLASS"/>
  33. </Match>
  34. <Match>
  35. <!-- inner class serialization warning can be ignored for testing purposes -->
  36. <Class name="~SpymemcachedTest\$.*"/>
  37. <Bug pattern="SE_BAD_FIELD_INNER_CLASS"/>
  38. </Match>
  39. <Match>
  40. <!-- writing to static field in a non-static method (clearAllExportedData()) -->
  41. <Class name="io.opentelemetry.instrumentation.testing.LibraryTestRunner"/>
  42. <Bug pattern="ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD"/>
  43. </Match>
  44. <Match>
  45. <Class name="io.opentelemetry.instrumentation.api.tracer.utils.NetPeerUtils"/>
  46. <Method name="setNetPeer"
  47. params="io.opentelemetry.api.trace.Span,java.lang.String,java.lang.String,int"
  48. returns="void"/>
  49. <Bug pattern="UC_USELESS_VOID_METHOD"/>
  50. </Match>
  51. </FindBugsFilter>