Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use most recent spotbugs improvements in tutorial #5670

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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