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

Run FindBugs by default in components #18

Merged
merged 3 commits into from
Feb 28, 2018

Conversation

oleg-nenashev
Copy link
Member

@oleg-nenashev oleg-nenashev commented Feb 23, 2018

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:/jenkinsci/plugin-pom with some extra patches for the core support.

@oleg-nenashev
Copy link
Member Author

@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 -->
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, likely.

Copy link
Member

@dwnusbaum dwnusbaum left a 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.)

@oleg-nenashev
Copy link
Member Author

@reviewbybees done. All downstream PRs have been also approved, so I will just ship it for now.

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.)

Last time I tried to introduce a dependency in parent POM, reviewers said that it's better to keep all such things in dependencyManagement only. Which totally makes sense in the case of JSR305, because there are some license concerns with JSR305 annotation libraries: findbugsproject/findbugs#128.

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.

@oleg-nenashev oleg-nenashev merged commit 6ca3ff9 into jenkinsci:master Feb 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants