Skip to content

Commit 40544e1

Browse files
committed
Globally omit spotbugs CT_CONSTRUCTOR_THROW bug pattern
The CT_CONSTRUCTOR_THROW bug pattern is related to libraries used with SecurityManager and does not apply to Jenkins; we do not expect untrusted code to be running inside the controller JVM, therefore we suppress it globally. jenkinsci/plugin-pom#869 (comment) has more details.
1 parent 4132142 commit 40544e1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pom.xml

+5-1
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,12 @@
7575
The MS_EXPOSE_REP, EI_EXPOSE_REP, EI_EXPOSE_REP2, EI_EXPOSE_STATIC_REP2, MS_EXPOSE_BUF,
7676
EI_EXPOSE_BUF, EI_EXPOSE_STATIC_BUF2, and EI_EXPOSE_BUF2 bug patterns are noisy and create
7777
little value; therefore, we suppress them globally.
78+
79+
The CT_CONSTRUCTOR_THROW bug pattern is related to libraries used with SecurityManager
80+
and does not apply to Jenkins; we do not expect untrusted code to be running inside the
81+
controller JVM, therefore we suppress it globally.
7882
-->
79-
<spotbugs.omitVisitors>FindReturnRef</spotbugs.omitVisitors>
83+
<spotbugs.omitVisitors>FindReturnRef,ConstructorThrow</spotbugs.omitVisitors>
8084

8185
<!-- Set to false to enable Spotless -->
8286
<spotless.check.skip>true</spotless.check.skip>

0 commit comments

Comments
 (0)