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

Silence pmd and spotbugs warnings #93

Merged
merged 9 commits into from
Dec 23, 2023

Conversation

MarkEWaite
Copy link
Contributor

📝 Description

Silence pmd and spotbugs warnings.

  • Remove unnecessary parentheses
  • Remove unnecessary final on resource usage
  • Combine nested if statements into single statement
  • Remove unused import
  • Use simpler reference to field
  • Use maven pmd plugin 3.21.2
  • Move spotbugs filter to default location
  • Use parent pom 4.76
  • Suppress existing spotbugs warnings

🎯 Relevant issues

N/A

💎 Type of change

  • Maintenance

🚦 How Has This Been Tested?

Automated tests pass. No other testing performed.

🏁 Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • New and existing unit tests pass locally with my changes
  • I have commented my code, particularly in hard-to-understand areas

@MarkEWaite MarkEWaite requested a review from a team as a code owner December 23, 2023 15:07
@MarkEWaite
Copy link
Contributor Author

@MarkEWaite
Copy link
Contributor Author

I assumed that the issue in the GitHub action was related to the non-zero count of spotbugs warnings, so I included suppressions of the spotbugs warnings in this pull request. My assumption was wrong, though I believe this is ready for review, whether or not the GitHub actions pass. It reduces the spotbugs warnings to zero and configures spotbugs to fail if new warnings are introduced.

@hypery2k hypery2k added this pull request to the merge queue Dec 23, 2023
Merged via the queue into jenkinsci:develop with commit 0556d20 Dec 23, 2023
14 of 18 checks passed
@hypery2k
Copy link
Contributor

okay, worked after merging, but on MR there seems an permission issue. Have to check that

thanks for your contribution

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.

2 participants