Skip to content

Commit

Permalink
Use most recent spotbugs improvements in tutorial (#5670)
Browse files Browse the repository at this point in the history
The spotbugs excludes filter file is now enabled automatically if a file
with the correct name is found.  There is no longer any need to add the
entry into the pom.xml file.

See https://github.com/jenkinsci/pom/releases/tag/jenkins-1.91 and
jenkinsci/pom#333
  • Loading branch information
MarkEWaite authored Nov 4, 2022
1 parent e501b47 commit 4e20697
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ Sometimes the number of spotbugs exclusions make it inconvenient or tedious to p
In those cases, a spotbugs exclusions file can be used to list the spotbugs warnings that are being excluded and the classes, methods, and fields involved.

A good example of the spotbugs exclusions file and its configuration is available from Jenkins core.
See the link:https://github.com/jenkinsci/jenkins/blob/master/src/spotbugs/spotbugs-excludes.xml[src/spotbugs/spotbugs-excludes.xml] source file for examples.
See the link:https://github.com/jenkinsci/build-timestamp-plugin/blob/master/pom.xml#L25[pom.xml file] for the property that enables the spotbugs `excludeFilterFile`.
See the link:https://github.com/jenkinsci/jenkins/blob/master/src/spotbugs/excludesFilter.xml[src/spotbugs/excludesFilter.xml] source file for examples.
The exclusions in the filter file are enabled automatically with recent versions so long as the exclusion file is named `src/spotbugs/excludesFilter.xml`.

An example excludes filter file is also included here:

[source,xml]
----
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0"?>
<FindBugsFilter>
<!--
Exclusions in this section have been triaged and determined to be
Expand Down

0 comments on commit 4e20697

Please sign in to comment.