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

Remove duplicate SpotBugs defaults #628

Merged
merged 2 commits into from
Nov 2, 2022
Merged

Conversation

basil
Copy link
Member

@basil basil commented Nov 2, 2022

The version of the SpotBugs Maven Plugin that we are using already defines the failOnError, effort, threshold, and excludeFilterFile mojo parameters to the values of the spotbugs.failOnError, spotbugs.threshold, spotbugs.effort, or spotbugs.excludeFilterFile properties if set, with the same defaults as ours if these properties are not set (see https://github.com/spotbugs/spotbugs-maven-plugin/blob/f01a7f6b99da3d2e6dcdbddd20f0b4e4dfac73fa/src/main/groovy/org/codehaus/mojo/spotbugs/BaseViolationCheckMojo.groovy). As such it is completely redundant to declare these defaults ourselves and configure the mojo with them. To test this, I compiled the Confluence Publisher plugin with these changes and observed that the spotbugs.failOnError setting still took effect with the changes in this PR.

@basil basil added the internal label Nov 2, 2022
@basil basil merged commit e4acd08 into jenkinsci:master Nov 2, 2022
@basil basil deleted the spotbugs-defaults branch November 2, 2022 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants