-
Notifications
You must be signed in to change notification settings - Fork 38
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
Run FindBugs by default in components #18
Run FindBugs by default in components #18
Conversation
@reviewbybees @dwnusbaum . I still need to create some downstream PRs before we go forward |
pom.xml
Outdated
<artifactId>findbugs-maven-plugin</artifactId> | ||
<configuration> | ||
<failOnError>${findbugs.failOnError}</failOnError> | ||
<!-- Do not define excludeFilterFile here as it will force a plugin to provide a file --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this comment be removed since excludeFilterFile
is defined a few lines below?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, likely.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐝 I think this makes sense and the defaults look good to me. I recall seeing the jsr305
dependency (I think it adds @Nonnull
) listed in tandem with findbugs in various places, should it be added here as well? (Seems likely to not matter but I wanted to make sure.)
@reviewbybees done. All downstream PRs have been also approved, so I will just ship it for now.
Last time I tried to introduce a dependency in parent POM, reviewers said that it's better to keep all such things in I think we will need to revisit it when we migrate to SpotBugs which offers new annotations without license obstacles. For now I will avoid including it in the core-wide parent POM. |
I am tired of setting up FindBugs for every core component/plugin separately, so I would like to generalize it in the parent POM.
The current implementation is taken from the https://github.com/jenkinsci/plugin-pom with some extra patches for the core support.