Skip to content

Apply Best Practices PMD rules #14753

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

Merged
merged 9 commits into from
Jul 15, 2022
Merged

Apply Best Practices PMD rules #14753

merged 9 commits into from
Jul 15, 2022

Conversation

alovew
Copy link
Contributor

@alovew alovew commented Jul 15, 2022

This PR applies the following PMD rules and fixes existing violations:

  • UnusedPrivateField
  • UnusedPrivateMethod
  • UnusedAssignment
  • UnusedFormalParameter
  • UnusedLocalVariable

Where you see variables & methods removed, it is because they are not used. There is a little bit of a gotcha in this for cases where there is an unused variable, but the assignment of the variable itself has side effects (like a database delete/create). In these cases, just the variable assignment is removed.

@alovew alovew requested a review from a team as a code owner July 15, 2022 17:48
@alovew alovew temporarily deployed to more-secrets July 15, 2022 17:49 Inactive
@alovew alovew force-pushed the anne/best-practices-pmd branch from 276f783 to 659ec94 Compare July 15, 2022 17:52
@alovew alovew temporarily deployed to more-secrets July 15, 2022 17:54 Inactive
Copy link
Contributor

@evantahler evantahler left a comment

Choose a reason for hiding this comment

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

Nice!
👍 pending the tests are passing.

@alovew alovew temporarily deployed to more-secrets July 15, 2022 18:17 Inactive
@alovew alovew temporarily deployed to more-secrets July 15, 2022 18:52 Inactive
@alovew alovew temporarily deployed to more-secrets July 15, 2022 19:10 Inactive
@alovew alovew temporarily deployed to more-secrets July 15, 2022 19:45 Inactive
@alovew alovew temporarily deployed to more-secrets July 15, 2022 20:11 Inactive
@alovew alovew temporarily deployed to more-secrets July 15, 2022 20:49 Inactive
@alovew alovew temporarily deployed to more-secrets July 15, 2022 21:17 Inactive
@alovew alovew force-pushed the anne/best-practices-pmd branch from bba7962 to e981ead Compare July 15, 2022 21:23
@alovew alovew temporarily deployed to more-secrets July 15, 2022 21:25 Inactive
@alovew alovew merged commit e698710 into master Jul 15, 2022
@alovew alovew deleted the anne/best-practices-pmd branch July 15, 2022 22:01
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.

3 participants