Skip to content

Commit

Permalink
Globally omit spotbugs CT_CONSTRUCTOR_THROW bug pattern
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
MarkEWaite committed Jan 3, 2024
1 parent 4132142 commit 40544e1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pom.xml
Expand Up @@ -75,8 +75,12 @@
The MS_EXPOSE_REP, EI_EXPOSE_REP, EI_EXPOSE_REP2, EI_EXPOSE_STATIC_REP2, MS_EXPOSE_BUF,
EI_EXPOSE_BUF, EI_EXPOSE_STATIC_BUF2, and EI_EXPOSE_BUF2 bug patterns are noisy and create
little value; therefore, we suppress them globally.
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.
-->
<spotbugs.omitVisitors>FindReturnRef</spotbugs.omitVisitors>
<spotbugs.omitVisitors>FindReturnRef,ConstructorThrow</spotbugs.omitVisitors>

<!-- Set to false to enable Spotless -->
<spotless.check.skip>true</spotless.check.skip>
Expand Down

0 comments on commit 40544e1

Please sign in to comment.