Disable THROWS_METHOD_THROWS_CLAUSE_* 15/101115/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 13 May 2022 13:43:16 +0000 (15:43 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 13 May 2022 13:43:16 +0000 (15:43 +0200)
These checks are causing a ton of false positives, disable them.

Change-Id: Id8344284267e8bf47947eff7a11f652fc9a44c0f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
spotbugs/src/main/resources/spotbugs-exclude.xml

index 836893c1c4d25b6e1f144ac13fb8db63e3f20750..0661edf3824c50ac6974f996a221a7b10ae28c58 100644 (file)
       <Bug pattern="EI_EXPOSE_REP"/>
       <Bug pattern="EI_EXPOSE_REP2"/>
       <Bug pattern="MS_EXPOSE_REP"/>
+
+      <!-- https://github.com/spotbugs/spotbugs/issues/{2040,2043,2050} and others.
+           Let us not inflict this pain on downstreams just yet.  -->
+      <Bug pattern="THROWS_METHOD_THROWS_CLAUSE_BASIC_EXCEPTION"/>
+      <Bug pattern="THROWS_METHOD_THROWS_CLAUSE_THROWABLE"/>
     </Or>
   </Match>
 </FindBugsFilter>